Bug 22836: (follow-up) improve test message
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
(cherry picked from commit 92ab7f66eb)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
This commit is contained in:
parent
9b471e00f0
commit
8375bdbd53
|
|
@ -226,7 +226,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%22%3E%3Cscript%3Ealert%28%27booh%21%27%29%3C%2Fscript%3E}, 'The second patch should displayed the variables and attributes correctly URI escaped' );
|
||||
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;
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in New Issue