Lines 228-234
subtest 'XSS vulnerabilities in pagination' => sub {
Link Here
|
228 |
is( $alert_text, undef, 'No alert box displayed, even if evil intent' ); |
228 |
is( $alert_text, undef, 'No alert box displayed, even if evil intent' ); |
229 |
|
229 |
|
230 |
my $second_page = $driver->find_element('//div[@class="pages"]/span[@class="currentPage"]/following-sibling::a'); |
230 |
my $second_page = $driver->find_element('//div[@class="pages"]/span[@class="currentPage"]/following-sibling::a'); |
231 |
like( $second_page->get_attribute('href'), qr{category=1%22%3E%3Cscript%3Ealert%28%27booh%21%27%29%3C%2Fscript%3E}, 'The second patch should displayed the variables and attributes correctly URI escaped' ); |
231 |
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' ); |
232 |
|
232 |
|
233 |
push @cleanup, $patron, $patron->category, $patron->library; |
233 |
push @cleanup, $patron, $patron->category, $patron->library; |
234 |
}; |
234 |
}; |
235 |
- |
|
|