Bug 37309: Adjust test

The test to catch wrong "op" in posted form was not supporting single
quotes.

Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
This commit is contained in:
Jonathan Druart 2024-08-26 10:57:56 +02:00 committed by Katrin Fischer
parent cb9a05a713
commit 75e81d921a
No known key found for this signature in database
GPG Key ID: 0EF6E2C03357A834
1 changed files with 3 additions and 3 deletions

View File

@ -58,10 +58,10 @@ sub catch_missing_op {
$in_form = 1;
$line_open_form = $line_number;
}
if ( $in_form && $line =~ m{name="op"} ) {
if ( $in_form && $line =~ m{name=('|")op('|")} ) {
$has_op = 1;
if ( $line =~ m{value="(.*)"} ) {
$op_value = $1;
if ( $line =~ m{value=('|")([^'"]*)('|")} ) {
$op_value = $2;
}
}
if ( $in_form && $line =~ m{</form} ) {