diff options
authorBryce Kwon <bryce@brycekwon.com>
committerBryce Kwon <bryce@brycekwon.com>
commit
parent
tree
download
Answer 404 for any path below the about page
The about page served every file beside the readme as a page of its own, through the about filter, and answered 200 for directories and missing files alike. Images it passed through came from the root of the default branch whatever the readme's own directory and ref. A readme on disk exposed its whole directory this way.
Diffstat (limited to 'tests/t0301-security.sh')
-rwxr-xr-xtests/t0301-security.sh2
1 file changed, 1 insertion, 1 deletion
diff --git a/tests/t0301-security.sh b/tests/t0301-security.sh
index 1a5ee44..ce2b5da 100755
--- a/tests/t0301-security.sh
+++ b/tests/t0301-security.sh
@@ -445,7 +445,7 @@ test_expect_success 'the dumb transport refuses a path that climbs out' '
test_expect_success 'the about page serves nothing above the readme directory' '
cveq "url=cve/about/../cverc" >tmp &&
- grep "^Status: 200" tmp &&
+ grep "^Status: 404" tmp &&
! grep "virtual-root" tmp &&
cveq "url=cve/about/" >tmp &&
grep "readme text" tmp