From 948106546ded24718d62503a2c78a8ba0590636a Mon Sep 17 00:00:00 2001 From: Wainui Witika-Park Date: Sun, 27 Jun 2021 04:14:59 +0000 Subject: [PATCH] Revert "Bug 28409: Adjust regression test" This reverts commit befd3f872156ec676884b4e578406da63c5e2722. --- t/db_dependent/selenium/regressions.t | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/t/db_dependent/selenium/regressions.t b/t/db_dependent/selenium/regressions.t index af33eec92a..b0f6555620 100644 --- a/t/db_dependent/selenium/regressions.t +++ b/t/db_dependent/selenium/regressions.t @@ -237,7 +237,7 @@ subtest 'XSS vulnerabilities in pagination' => sub { is( $alert_text, undef, 'No alert box displayed, even if evil intent' ); my $second_page = $driver->find_element('//div[@class="pages"]/span[@class="currentPage"]/following-sibling::a'); - like( $second_page->get_attribute('href'), qr{(?|&)category=2(&|$)}, 'The second page should display category without the invalid value' ); + like( $second_page->get_attribute('href'), qr{category=2%22%3E%3Cscript%3Ealert%28%27booh%21%27%29%3C%2Fscript%3E}, 'The second page should display the variables and attributes correctly URI escaped' ); push @cleanup, $patron, $patron->category, $patron->library; -- 2.39.5