diff options
author | Andreas Gohr <andi@splitbrain.org> | 2014-11-11 12:49:28 +0100 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2014-11-11 12:49:28 +0100 |
commit | d742dc26c0a306bbe662462e2d83febc89ac396c (patch) | |
tree | 2cf35e7fa8e2bd1adeae84706eeb74bb3cdd8454 /inc/parser | |
parent | 2eea2c61bafe542219a86d027f76af8650cb5f6e (diff) | |
parent | 83b7e38df41d6f1c41ee6818b4838addfbf95e1a (diff) | |
download | rpg-d742dc26c0a306bbe662462e2d83febc89ac396c.tar.gz rpg-d742dc26c0a306bbe662462e2d83febc89ac396c.tar.bz2 |
Merge pull request #926 from micgro42/trimSlashes
Trim unnecessary / at start of windowssharelink
Diffstat (limited to 'inc/parser')
-rw-r--r-- | inc/parser/xhtml.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/inc/parser/xhtml.php b/inc/parser/xhtml.php index 5627a0353..3a2e49155 100644 --- a/inc/parser/xhtml.php +++ b/inc/parser/xhtml.php @@ -999,6 +999,7 @@ class Doku_Renderer_xhtml extends Doku_Renderer { $link['title'] = $this->_xmlEntities($url); $url = str_replace('\\', '/', $url); + $url = ltrim($url,'/'); $url = 'file:///'.$url; $link['url'] = $url; |