summaryrefslogtreecommitdiff
path: root/inc/parser
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2007-06-23 16:20:08 +0200
committerAndreas Gohr <andi@splitbrain.org>2007-06-23 16:20:08 +0200
commitad32e47ec013c8299ce5807b1ed0c1969590a6c1 (patch)
treebdb562fd33cb91a085ef17fda977358569754fba /inc/parser
parent5e01796d8442a7273738ecc4ab6c02ebe2e00637 (diff)
downloadrpg-ad32e47ec013c8299ce5807b1ed0c1969590a6c1.tar.gz
rpg-ad32e47ec013c8299ce5807b1ed0c1969590a6c1.tar.bz2
fix for colons in fragment identifiers FS#1062
darcs-hash:20070623142008-7ad00-fe29449145bb0f41d28b26d088c9017545775d74.gz
Diffstat (limited to 'inc/parser')
-rw-r--r--inc/parser/xhtml.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/inc/parser/xhtml.php b/inc/parser/xhtml.php
index c1a07d24f..fdf384a62 100644
--- a/inc/parser/xhtml.php
+++ b/inc/parser/xhtml.php
@@ -500,6 +500,7 @@ class Doku_Renderer_xhtml extends Doku_Renderer {
global $ID;
// default name is based on $id as given
$default = $this->_simpleTitle($id);
+
// now first resolve and clean up the $id
resolve_pageid(getNS($ID),$id,$exists);
$name = $this->_getLinkTitle($name, $default, $isImage, $id);
@@ -515,6 +516,7 @@ class Doku_Renderer_xhtml extends Doku_Renderer {
//keep hash anchor
list($id,$hash) = explode('#',$id,2);
+ $hash = $this->_headerToLink($hash);
//prepare for formating
$link['target'] = $conf['target']['wiki'];