summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2014-11-11 12:49:28 +0100
committerAndreas Gohr <andi@splitbrain.org>2014-11-11 12:49:28 +0100
commitd742dc26c0a306bbe662462e2d83febc89ac396c (patch)
tree2cf35e7fa8e2bd1adeae84706eeb74bb3cdd8454
parent2eea2c61bafe542219a86d027f76af8650cb5f6e (diff)
parent83b7e38df41d6f1c41ee6818b4838addfbf95e1a (diff)
downloadrpg-d742dc26c0a306bbe662462e2d83febc89ac396c.tar.gz
rpg-d742dc26c0a306bbe662462e2d83febc89ac396c.tar.bz2
Merge pull request #926 from micgro42/trimSlashes
Trim unnecessary / at start of windowssharelink
-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;