summaryrefslogtreecommitdiffstats
path: root/debian/perl-framework/t/security/CVE-2007-6388.t
blob: 70ebb7d83858fe95d6db5aabc48419c11667c7cb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use strict;
use warnings FATAL => 'all';

use Apache::Test;
use Apache::TestUtil;
use Apache::TestRequest;

my $vars = Apache::Test::vars();

plan tests => 2, need_module 'status';

my $url = '/server-status?refresh=42;fish';

my $r = GET $url;

ok t_cmp($r->code, 200, "response code is OK");

ok t_cmp($r->header('Refresh'), 42, "refresh parameter not echoed verbatim");