summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorandi <andi@splitbrain.org>2005-05-23 19:37:34 +0200
committerandi <andi@splitbrain.org>2005-05-23 19:37:34 +0200
commit26b8b699316de93ab2e795a587e655db27aae651 (patch)
tree7fcda701a7acb3145925fd16629ba1376492d85b
parent107b01d60353b74aebd1901b6f19e70a998b2594 (diff)
downloadrpg-26b8b699316de93ab2e795a587e655db27aae651.tar.gz
rpg-26b8b699316de93ab2e795a587e655db27aae651.tar.bz2
fix for ftp links #345
darcs-hash:20050523173734-9977f-bb07be2ed47490dcca80a9cff6c6a2bc4980d9cd.gz
-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 b58c24435..1520d6624 100644
--- a/inc/parser/xhtml.php
+++ b/inc/parser/xhtml.php
@@ -507,7 +507,7 @@ class Doku_Renderer_xhtml extends Doku_Renderer {
$name = $this->_getLinkTitle($name, $url, $isImage);
// add protocol on simple short URLs
- if(substr($url,0,3) == 'ftp') $url = 'ftp://'.$url;
+ if(substr($url,0,3) == 'ftp' && (substr($url,0,6) != 'ftp://')) $url = 'ftp://'.$url;
if(substr($url,0,3) == 'www') $url = 'http://'.$url;
if ( !$isImage ) {