Item12526: Bracketed links don't recognize all anchors generated for TML headings
Priority: Normal
Current State: Closed
Released In: 1.1.9
Target Release: patch
Applies To: Engine
Component: FoswikiRender
Branches: Release01x01 trunk
Foswiki::Render::Anchors
generates anchors out of HTML/TML headings, escaping all characters but alphanumerics, underscores, dots, and colons (
A-Za-z0-9_.:
). The code that formats bracketed links, however, only recognizes alphanumerics and underscores as valid characters in anchors (defined by
$Foswiki::regex{anchorRegex}
).
The result is that a link like
[[#Foo.Bar]]
will be incorrectly treated as a WikiWord and expanded to a link pointing to
.../Foo/Bar
.
The regex should be updated to match what is being generated, at the very least (technically many more characters are valid in URI fragments).
--
JanKrueger - 04 Jun 2013