From 75e81d921a8f0548dce17d4f9cf4acd78e728170 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Mon, 26 Aug 2024 10:57:56 +0200 Subject: [PATCH] Bug 37309: Adjust test The test to catch wrong "op" in posted form was not supporting single quotes. Signed-off-by: Katrin Fischer --- xt/find-missing-op-in-forms.t | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/xt/find-missing-op-in-forms.t b/xt/find-missing-op-in-forms.t index e072344858..3958a1fbd3 100755 --- a/xt/find-missing-op-in-forms.t +++ b/xt/find-missing-op-in-forms.t @@ -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{