Skip to content

Commit

Permalink
tests: fix AH: Unsafe URL with %3f URL rewritten without UnsafeAllow3F
Browse files Browse the repository at this point in the history
  • Loading branch information
sni committed Jul 9, 2024
1 parent 1e1bd26 commit a6a9d4e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions t/TestUtils.pm
Original file line number Diff line number Diff line change
Expand Up @@ -990,6 +990,7 @@ sub _external_request {
my $login_page = $req->{'_headers'}->{'location'};
my $r = _external_request($login_page, undef, undef, $agent);
$login_page =~ s/nocookie&//gmx;
$login_page =~ s/%3f/?/gmx; # fix AH: Unsafe URL with %3f URL rewritten without UnsafeAllow3F
$r = _external_request($login_page, undef, { password => $pass, login => $user, submit => 'login', referer => $referer }, $agent, undef, undef, 0);
$req = _external_request($r->{'_headers'}->{'location'}, $start_to, $post, $agent, undef, undef, 0);
}
Expand Down

0 comments on commit a6a9d4e

Please sign in to comment.