From 3f9410e7a2663dc3f341f82687bef3e9dbea336a Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Tue, 15 Apr 2014 07:10:17 +0000 Subject: Revert "cgi: relax path restriction for top-level" CGI mounts should probably handle this internally. We're reverting this since it adds too much potential for abuse with fake/extra prefixes in the URL. We also need to reorder our redirect handling as a result. This reverts commit c394de9f2c91c2c5ed1f7832a5a7cc0206120b7f. --- t/cgi.t | 4 ---- 1 file changed, 4 deletions(-) (limited to 't') diff --git a/t/cgi.t b/t/cgi.t index 91efca50..611fb604 100644 --- a/t/cgi.t +++ b/t/cgi.t @@ -156,10 +156,6 @@ EOF $res = cgi_run("/test/m/blahblah\@example.com.txt"); like($res->{body}, qr/Message-Id: /, "mid.txt hit"); - - my $pfx = cgi_run("/prefixed/test/m/blahblah\@example.com.txt"); - is_deeply($pfx, $res, "we do not have to be a top-level URL"); - $res = cgi_run("/test/m/blahblah\@example.con.txt"); like($res->{head}, qr/Status: 404 Not Found/, "mid.txt miss"); -- cgit v1.2.3-24-ge0c7