Skip to content

Commit

Permalink
Item8592: Don't encode a leading ! when used to escape a WikiWord.
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.foswiki.org/trunk@7283 0b4bb1d4-4e5a-0410-9cc4-b2b747904278
  • Loading branch information
GeorgeClark authored and GeorgeClark committed Apr 28, 2010
1 parent c1b1285 commit 32784de
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions core/lib/Foswiki/Render.pm
Expand Up @@ -468,6 +468,9 @@ sub _makeAnchorName {
$text =~ s/<\/?[a-zA-Z][^>]*>//gi;
$text =~ s/&#?[a-zA-Z0-9]+;//g;

# remove escape from escaped wikiWords
$text =~ s/!($Foswiki::regex{wikiWordRegex})/$1/go;

# remove spaces
$text =~ s/\s+/_/g;

Expand Down

0 comments on commit 32784de

Please sign in to comment.