summaryrefslogtreecommitdiff
path: root/inc/parser
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2005-07-24 14:50:47 +0200
committerAndreas Gohr <andi@splitbrain.org>2005-07-24 14:50:47 +0200
commit2684e50a0796d39e424969890c16eb97a8838151 (patch)
tree848f781cec60c964e20b0f2a193b7d81a5433a54 /inc/parser
parent55efc227eaeb2d480ff22837b78f89766b07fe5f (diff)
downloadrpg-2684e50a0796d39e424969890c16eb97a8838151.tar.gz
rpg-2684e50a0796d39e424969890c16eb97a8838151.tar.bz2
some minor fixes in image detail handling
darcs-hash:20050724125047-7ad00-a03fa69aed22694f6b7635923b1f2ce564165b9f.gz
Diffstat (limited to 'inc/parser')
-rw-r--r--inc/parser/xhtml.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/inc/parser/xhtml.php b/inc/parser/xhtml.php
index b633260ac..81f0b2dca 100644
--- a/inc/parser/xhtml.php
+++ b/inc/parser/xhtml.php
@@ -708,7 +708,7 @@ class Doku_Renderer_xhtml extends Doku_Renderer {
$link['title'] = $this->_xmlEntities($src);
list($ext,$mime) = mimetype($src);
- if(substr($mime,0,5) == 'image'){
+ if(substr($mime,0,5) == 'image' && !preg_match('#^(https?|ftp)://#i',$src)){
$link['url']= DOKU_BASE.'lib/exe/detail.php?id='.$ID.'&amp;cache='.$cache.'&amp;media='.urlencode($src);
}else{
$link['url']= DOKU_BASE.'lib/exe/fetch.php?cache='.$cache.'&amp;media='.urlencode($src);