diff options
author | Ivan Kohler <ivan@freeside.biz> | 2012-06-30 01:03:13 -0700 |
---|---|---|
committer | Ivan Kohler <ivan@freeside.biz> | 2012-06-30 01:03:13 -0700 |
commit | f3c4966ed1f6ec3db7accd6dcdd3a5a3821d72a7 (patch) | |
tree | e5e9a077260613e6117d4697dd2985abd9b03d34 /rt/t/web/path-traversal.t | |
parent | cf7cd8efc7095aadbdfb0cd8e7ea0e2e8b9e9085 (diff) | |
parent | cd3eb95ed1f3dc3e04cfc2b3b405f75b3ab086da (diff) |
merging RT 4.0.6
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"); |