summaryrefslogtreecommitdiff
path: root/inc/fulltext.php
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2013-06-16 12:36:58 -0700
committerAndreas Gohr <andi@splitbrain.org>2013-06-16 12:36:58 -0700
commit06f8cfbed961eb9394fa29558dd29c79f87fc9ad (patch)
tree20b02ae07d943248a0a01191409cd02120e5fcb3 /inc/fulltext.php
parentd6b7a2dd189b692f9a754f4f1a330abe6449669a (diff)
parentb9ee6a44e7499b5c2e9f117096cedc769ef2e25d (diff)
downloadrpg-06f8cfbed961eb9394fa29558dd29c79f87fc9ad.tar.gz
rpg-06f8cfbed961eb9394fa29558dd29c79f87fc9ad.tar.bz2
Merge pull request #225 from splitbrain/fetchftp
Add media_isexternal
Diffstat (limited to 'inc/fulltext.php')
-rw-r--r--inc/fulltext.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/inc/fulltext.php b/inc/fulltext.php
index 7ee386063..2f073acea 100644
--- a/inc/fulltext.php
+++ b/inc/fulltext.php
@@ -172,7 +172,7 @@ function ft_mediause($id,$max){
preg_match_all('/\{\{([^|}]*'.$pcre.'[^|}]*)(|[^}]+)?\}\}/i',rawWiki($doc),$matches);
foreach($matches[1] as $img){
$img = trim($img);
- if(preg_match('/^https?:\/\//i',$img)) continue; // skip external images
+ if(media_isexternal($img)) continue; // skip external images
list($img) = explode('?',$img); // remove any parameters
resolve_mediaid($ns,$img,$exists); // resolve the possibly relative img