Item5841: Move topic changes non-wiki links
Priority: Normal
Current State: Closed
Released In: 1.1.0
Target Release: minor
Applies To: Engine
Component:
Branches:
"Move topic" action changes non-wiki links to <oldWeb>.<WikiWordButNoLink> word, for example:
Example page entry: <exclamationPoint>WikiWordButNoWikiLink after move this page to another web, the context changes to: <exclamationPoint><oldWeb>.WikiWordButNoTWikiLink
This text- modification doesn't make sense, move shouldn't change non-twiki links.
-- Main/SaschaVetter - 29 Jul 2008
Short example:
Raw view:
in twiki:
move topic to sandbox changes twiki words:
new raw view:
--
TWiki:Main.SaschaVetter - 07 Aug 2008
There seems to be a really simple fix to this - that is probably very widely impacting.
Render.pm
getReferenceRE uses \b to match the beginning / ending of a
WikiWord. However punctuation like > from nop, and !, are considered word boundary so escaped
WikiWords are incorrectly matched.
Render.pm - everywhere else uses a precompiled regex $STARTWW and $ENDWW to match the beginning or end of a
WikiWord. Bringing getReferenceRE to be consistent with all of the other
WikiWord matches in Render.PM seems to solve this issue. But not sure what else it breaks.
I guess if it was easy, it would have been fixed. This breaks lots of stuff.
--
GeorgeClark - 01 Aug 2010