From 26b8b699316de93ab2e795a587e655db27aae651 Mon Sep 17 00:00:00 2001 From: andi Date: Mon, 23 May 2005 19:37:34 +0200 Subject: fix for ftp links #345 darcs-hash:20050523173734-9977f-bb07be2ed47490dcca80a9cff6c6a2bc4980d9cd.gz --- inc/parser/xhtml.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'inc/parser') 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 ) { -- cgit v1.2.3