Fix: add https and ssh

This commit is contained in:
Regis Houssin
2012-01-21 18:24:21 +01:00
parent 70a67bc3f1
commit 2a21668b43

View File

@@ -329,7 +329,7 @@ function dol_is_file($pathoffile)
*/
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)
{
if (preg_match('/^'.$prot.':/i',$url)) return true;