Skip to content

Commit

Permalink
Item14324: More regexes with unescaped braces.
Browse files Browse the repository at this point in the history
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 32cfdf2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/lib/Foswiki/Render.pm
Expand Up @@ -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
}
}

Expand Down

0 comments on commit 32cfdf2

Please sign in to comment.