Skip to content

Commit

Permalink
Item1468: Topics with regex quantifier + in their names prevents othe…
Browse files Browse the repository at this point in the history
…r topics from being moved

Topic names with a + are silly but none the less possible to make.
I once studied a bug related to this which is why I had a MyC++ topic.
This little fix should do no harm and fixes this particular problem


git-svn-id: http://svn.foswiki.org/branches/Release01x00@3558 0b4bb1d4-4e5a-0410-9cc4-b2b747904278
  • Loading branch information
KennethLavrsen authored and KennethLavrsen committed Apr 19, 2009
1 parent e2f6fbf commit 0f0a4ba
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions core/lib/Foswiki/Render.pm
Original file line number Diff line number Diff line change
Expand Up @@ -2049,6 +2049,9 @@ sub getReferenceRE {

# Convert . and / to [./] (subweb separators)
$matchWeb =~ s#[./]#[./]#go;

# Item1468 - Convert '+' to '\+' as '+' can be used in topic names
$topic =~ s/[+]/\\+/go;

# Note use of \< and \> to match the empty string at the
# edges of a word.
Expand Down

0 comments on commit 0f0a4ba

Please sign in to comment.