Skip to content

Commit

Permalink
Item13776: More braces need escaping
Browse files Browse the repository at this point in the history
  • Loading branch information
gac410 committed Oct 2, 2015
1 parent de2d949 commit a1daad6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions core/lib/Foswiki/Query/HoistREs.pm
Expand Up @@ -258,7 +258,7 @@ sub _hoistDOT {
node => 'text',
regex => '^%'
. $lhs
. '{.*\\b'
. '\\{.*\\b'
. $rhs
. "=\\\"\000RHS\001\\\""
};
Expand All @@ -274,7 +274,7 @@ sub _hoistDOT {
return {
node => 'text',
regex =>
"^%META:FIELD{name=\\\"$rhs\\\".*\\bvalue=\\\"\000RHS\001\\\""
"^%META:FIELD\\{name=\\\"$rhs\\\".*\\bvalue=\\\"\000RHS\001\\\""
};
}

Expand Down Expand Up @@ -303,7 +303,7 @@ sub _hoistDOT {
return {
node => 'text',
regex =>
"^%META:FIELD{name=\\\"$node->{params}[0]\\\".*\\bvalue=\\\"\0RHS\1\\\""
"^%META:FIELD\\{name=\\\"$node->{params}[0]\\\".*\\bvalue=\\\"\0RHS\1\\\""
};
}
}
Expand Down
8 changes: 4 additions & 4 deletions core/lib/Foswiki/Store/SearchAlgorithms/Forking.pm
Expand Up @@ -41,16 +41,16 @@ sub search {
}

if ( $options->{casesensitive} ) {
$program =~ s/%CS{(.*?)\|.*?}%/$1/g;
$program =~ s/%CS\{(.*?)\|.*?\}%/$1/g;
}
else {
$program =~ s/%CS{.*?\|(.*?)}%/$1/g;
$program =~ s/%CS\{.*?\|(.*?)\}%/$1/g;
}
if ( $options->{files_without_match} ) {
$program =~ s/%DET{.*?\|(.*?)}%/$1/g;
$program =~ s/%DET\{.*?\|(.*?)\}%/$1/g;
}
else {
$program =~ s/%DET{(.*?)\|.*?}%/$1/g;
$program =~ s/%DET\{(.*?)\|.*?\}%/$1/g;
}
if ( $options->{wordboundaries} ) {

Expand Down

0 comments on commit a1daad6

Please sign in to comment.