From fad58b08ba76e260a400a87ce86a0941d10af4ad Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Tue, 6 Feb 2024 11:26:05 +0100 Subject: [PATCH] Bug 34478: Fix xt/find-missing-csrf.t It was reporting false positives. Signed-off-by: Jonathan Druart --- xt/find-missing-csrf.t | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/xt/find-missing-csrf.t b/xt/find-missing-csrf.t index 15dd6ae626..02692bcd6f 100755 --- a/xt/find-missing-csrf.t +++ b/xt/find-missing-csrf.t @@ -66,16 +66,17 @@ sub check_csrf_in_forms { my @errors; return @errors unless grep { $_ =~ m| starting on line $open is missing it's corresponding csrf_token include (see bug 22990)" if !$found; $found = 0; + undef $open; } } return @errors; -- 2.39.5