diff options
author | Ivan Kohler <ivan@freeside.biz> | 2012-07-08 22:45:58 -0700 |
---|---|---|
committer | Ivan Kohler <ivan@freeside.biz> | 2012-07-08 22:45:58 -0700 |
commit | a6fe07e49e3fc12169e801b1ed6874c3a5bd8500 (patch) | |
tree | b87a7e6f37da5c8e13eb4d4653cfc8ce9239d8f0 /rt/t/web/path-traversal.t | |
parent | e27244386c346f459d1569db26344407a0372a05 (diff) | |
parent | 005424d0c899aa899f43f583a6c74deb13ea4be1 (diff) |
Merge branch 'master' of git.freeside.biz:/home/git/freeside
Conflicts:
httemplate/misc/process/cancel_pkg.html
Diffstat (limited to 'rt/t/web/path-traversal.t')
-rw-r--r-- | rt/t/web/path-traversal.t | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/rt/t/web/path-traversal.t b/rt/t/web/path-traversal.t index 8d2f5cc88..5d5c954a1 100644 --- a/rt/t/web/path-traversal.t +++ b/rt/t/web/path-traversal.t @@ -1,7 +1,7 @@ use strict; use warnings; -use RT::Test tests => 20; +use RT::Test tests => 22; my ($baseurl, $agent) = RT::Test->started_ok; @@ -19,11 +19,17 @@ $agent->warning_like(qr/Invalid request.*aborting/,); $agent->get("$baseurl/NoAuth/../../../etc/RT_Config.pm"); is($agent->status, 400); -$agent->warning_like(qr/Invalid request.*aborting/,); +SKIP: { + skip "Apache rejects busting up above / for us", 2 if $ENV{RT_TEST_WEB_HANDLER} =~ /^apache/; + $agent->warning_like(qr/Invalid request.*aborting/,); +}; $agent->get("$baseurl/NoAuth/css/web2/images/../../../../../../etc/RT_Config.pm"); is($agent->status, 400); -$agent->warning_like(qr/Invalid request.*aborting/,); +SKIP: { + skip "Apache rejects busting up above / for us", 2 if $ENV{RT_TEST_WEB_HANDLER} =~ /^apache/; + $agent->warning_like(qr/Invalid request.*aborting/,); +}; # do not reject these URLs, even though they contain /. outside the path $agent->get("$baseurl/index.html?ignored=%2F%2E"); |