diff options
author | andi <andi@splitbrain.org> | 2005-04-28 22:13:06 +0200 |
---|---|---|
committer | andi <andi@splitbrain.org> | 2005-04-28 22:13:06 +0200 |
commit | 6f0c5dbf635314087f00cf0b7ca387effec492b8 (patch) | |
tree | bfc500c9161ffaea1288cb4bc5f2d006c98b03d2 /inc/parser/xhtml.php | |
parent | 313da78abbcffe408af09b97c101d52be18a262b (diff) | |
download | rpg-6f0c5dbf635314087f00cf0b7ca387effec492b8.tar.gz rpg-6f0c5dbf635314087f00cf0b7ca387effec492b8.tar.bz2 |
fixed some lineendeating #268 #274 #276
darcs-hash:20050428201306-9977f-0d1a0f63f09ea56fb6fad22dc9dda7b838f51b5b.gz
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'; |