diff options
Diffstat (limited to 'inc/parser/xhtml.php')
-rw-r--r-- | inc/parser/xhtml.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/inc/parser/xhtml.php b/inc/parser/xhtml.php index 1e520852e..8f414c2d6 100644 --- a/inc/parser/xhtml.php +++ b/inc/parser/xhtml.php @@ -456,6 +456,10 @@ class Doku_Renderer_xhtml extends Doku_Renderer { global $conf; $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) == 'www') $url = 'http://'.$url; if ( !$isImage ) { $class='urlextern'; |