diff options
author | Andreas Gohr <andi@splitbrain.org> | 2013-06-16 12:36:58 -0700 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2013-06-16 12:36:58 -0700 |
commit | 06f8cfbed961eb9394fa29558dd29c79f87fc9ad (patch) | |
tree | 20b02ae07d943248a0a01191409cd02120e5fcb3 /inc/common.php | |
parent | d6b7a2dd189b692f9a754f4f1a330abe6449669a (diff) | |
parent | b9ee6a44e7499b5c2e9f117096cedc769ef2e25d (diff) | |
download | rpg-06f8cfbed961eb9394fa29558dd29c79f87fc9ad.tar.gz rpg-06f8cfbed961eb9394fa29558dd29c79f87fc9ad.tar.bz2 |
Merge pull request #225 from splitbrain/fetchftp
Add media_isexternal
Diffstat (limited to 'inc/common.php')
-rw-r--r-- | inc/common.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/inc/common.php b/inc/common.php index b292fb75e..1b4d9e8e4 100644 --- a/inc/common.php +++ b/inc/common.php @@ -467,7 +467,7 @@ function exportlink($id = '', $format = 'raw', $more = '', $abs = false, $sep = */ function ml($id = '', $more = '', $direct = true, $sep = '&', $abs = false) { global $conf; - $isexternalimage = preg_match('#^(https?|ftp)://#i', $id); + $isexternalimage = media_isexternal($id); if(!$isexternalimage) { $id = cleanID($id); } |