Permalink
Browse files

Item14324: More regexes with unescaped braces.

Some of these seem to be hit at runtime rather than at compile. so
unless the code is executed, we miss them.
  • Loading branch information...
gac410 committed Mar 1, 2017
1 parent 61ca6a5 commit 32cfdf2b88eefa9c610a964699407ff3805d261e
Showing with 2 additions and 2 deletions.
  1. +2 −2 core/lib/Foswiki/Render.pm
@@ -685,10 +685,10 @@ sub TML2PlainText {
|| '';
$text =~ s/%WIKITOOLNAME%/$wtn/g;
if ( $opts =~ m/showvar/ ) {
- $text =~ s/%(\w+({.*?}))%/$1/g; # defuse
+ $text =~ s/%(\w+(\{.*?\}))%/$1/g; # defuse
}
else {
- $text =~ s/%$Foswiki::regex{tagNameRegex}({.*?})?%//g; # remove
+ $text =~ s/%$Foswiki::regex{tagNameRegex}(\{.*?\})?%//g; # remove
}
}

0 comments on commit 32cfdf2

Please sign in to comment.