summaryrefslogtreecommitdiff
path: root/inc/parser
diff options
context:
space:
mode:
authorMichael Große <mic.grosse+github@googlemail.com>2014-11-11 11:16:37 +0100
committerMichael Große <mic.grosse+github@googlemail.com>2014-11-11 11:16:37 +0100
commit83b7e38df41d6f1c41ee6818b4838addfbf95e1a (patch)
tree2cf35e7fa8e2bd1adeae84706eeb74bb3cdd8454 /inc/parser
parent2eea2c61bafe542219a86d027f76af8650cb5f6e (diff)
downloadrpg-83b7e38df41d6f1c41ee6818b4838addfbf95e1a.tar.gz
rpg-83b7e38df41d6f1c41ee6818b4838addfbf95e1a.tar.bz2
Trim unnecessary / at start of windowssharelink
Diffstat (limited to 'inc/parser')
-rw-r--r--inc/parser/xhtml.php1
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;