summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 ) {