From 83b7e38df41d6f1c41ee6818b4838addfbf95e1a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20Gro=C3=9Fe?= Date: Tue, 11 Nov 2014 11:16:37 +0100 Subject: Trim unnecessary / at start of windowssharelink --- inc/parser/xhtml.php | 1 + 1 file changed, 1 insertion(+) (limited to 'inc/parser') 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; -- cgit v1.2.3