From ad32e47ec013c8299ce5807b1ed0c1969590a6c1 Mon Sep 17 00:00:00 2001 From: Andreas Gohr <andi@splitbrain.org> Date: Sat, 23 Jun 2007 16:20:08 +0200 Subject: [PATCH] fix for colons in fragment identifiers FS#1062 darcs-hash:20070623142008-7ad00-fe29449145bb0f41d28b26d088c9017545775d74.gz --- inc/parser/xhtml.php | 2 ++ 1 file changed, 2 insertions(+) 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']; -- GitLab