From 943dedc690b7b8e32e00f7ae3d64e51cfe9a44b2 Mon Sep 17 00:00:00 2001
From: Andreas Gohr <andi@splitbrain.org>
Date: Mon, 25 Jun 2007 22:42:56 +0200
Subject: [PATCH] fixed problem with #section added to all links

darcs-hash:20070625204256-7ad00-928a9544d9a5f161bd2b445f49dfc5be22703153.gz
---
 inc/parser/xhtml.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/inc/parser/xhtml.php b/inc/parser/xhtml.php
index fdf384a62..102958c9d 100644
--- a/inc/parser/xhtml.php
+++ b/inc/parser/xhtml.php
@@ -516,7 +516,7 @@ class Doku_Renderer_xhtml extends Doku_Renderer {
 
         //keep hash anchor
         list($id,$hash) = explode('#',$id,2);
-        $hash = $this->_headerToLink($hash);
+        if(!empty($hash)) $hash = $this->_headerToLink($hash);
 
         //prepare for formating
         $link['target'] = $conf['target']['wiki'];
-- 
GitLab