Skip to content
Snippets Groups Projects
Commit 2a21668b authored by Regis Houssin's avatar Regis Houssin
Browse files

Fix: add https and ssh

parent 70a67bc3
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment