File tree Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -226,16 +226,16 @@ protected function sanitiseVariableValue($name, $value)
226
226
$ quote = $ value [0 ];
227
227
$ regexPattern = sprintf (
228
228
'/^
229
- %1$s # match a quote at the start of the value
230
- ( # capturing sub-pattern used
231
- (?: # we do not need to capture this
232
- [^%1$s \\\\] # any character other than a quote or backslash
233
- | \\\\\\\\ # or two backslashes together
234
- | \\\\%1$s # or an escaped quote e.g \"
235
- )* # as many characters that match the previous rules
236
- ) # end of the capturing sub-pattern
237
- %1$s # and the closing quote
238
- .*$ # and discard any string after the closing quote
229
+ %1$s # match a quote at the start of the value
230
+ ( # capturing sub-pattern used
231
+ (?: # we do not need to capture this
232
+ [^%1$s \\\\]* # any character other than a quote or backslash
233
+ | \\\\\\\\ # or two backslashes together
234
+ | \\\\%1$s # or an escaped quote e.g \"
235
+ )* # as many characters that match the previous rules
236
+ ) # end of the capturing sub-pattern
237
+ %1$s # and the closing quote
238
+ .*$ # and discard any string after the closing quote
239
239
/mx ' ,
240
240
$ quote
241
241
);
You can’t perform that action at this time.
0 commit comments