Fix: add https and ssh
This commit is contained in:
parent
70a67bc3f1
commit
2a21668b43
@ -329,7 +329,7 @@ function dol_is_file($pathoffile)
|
|||||||
*/
|
*/
|
||||||
function dol_is_url($url)
|
function dol_is_url($url)
|
||||||
{
|
{
|
||||||
$tmpprot=array('file','http','ftp','zlib','data','ssh2','ogg','expect');
|
$tmpprot=array('file','http','https','ftp','zlib','data','ssh','ssh2','ogg','expect');
|
||||||
foreach($tmpprot as $prot)
|
foreach($tmpprot as $prot)
|
||||||
{
|
{
|
||||||
if (preg_match('/^'.$prot.':/i',$url)) return true;
|
if (preg_match('/^'.$prot.':/i',$url)) return true;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user