Skip to content

Commit c4dceba

Browse files
authored
Merge pull request dokuwiki#4367 from dokuwiki/tildetitle
drop tilde from title. fixes dokuwiki#4347
2 parents 28c3de0 + fb02135 commit c4dceba

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

inc/parser/renderer.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -891,6 +891,9 @@ public function _simpleTitle($name)
891891
{
892892
global $conf;
893893

894+
// remove relative namespace
895+
$name = ltrim($name, '~');
896+
894897
//if there is a hash we use the ancor name only
895898
[$name, $hash] = sexplode('#', $name, 2);
896899
if ($hash) return $hash;

0 commit comments

Comments
 (0)