Skip to content
Snippets Groups Projects
Commit 030141fb authored by Andreas Gohr's avatar Andreas Gohr
Browse files

Merge pull request #422 from glensc/patch-1

media_isexternal do not capture
parents 8c6972a8 fe578fe9
No related branches found
No related tags found
No related merge requests found
......@@ -90,7 +90,7 @@ function media_metasave($id,$auth,$data){
* @return bool
*/
function media_isexternal($id){
if (preg_match('#^(https?|ftp)://#i', $id)) return true;
if (preg_match('#^(?:https?|ftp)://#i', $id)) return true;
return false;
}
......
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