Skip to content

Commit

Permalink
request from directory . should drop forbidden error
Browse files Browse the repository at this point in the history
  • Loading branch information
shortcutme committed Oct 4, 2017
1 parent a2182e8 commit 0f0f389
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Test/TestWeb.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def wget(url):
class TestWeb:
def testFileSecurity(self, site_url):
assert "Not Found" in wget("%s/media/sites.json" % site_url)
assert "Not Found" in wget("%s/media/./sites.json" % site_url)
assert "Forbidden" in wget("%s/media/./sites.json" % site_url)
assert "Forbidden" in wget("%s/media/../config.py" % site_url)
assert "Forbidden" in wget("%s/media/1EU1tbG9oC1A8jz2ouVwGZyQ5asrNsE4Vr/../sites.json" % site_url)
assert "Forbidden" in wget("%s/media/1EU1tbG9oC1A8jz2ouVwGZyQ5asrNsE4Vr/..//sites.json" % site_url)
Expand Down

0 comments on commit 0f0f389

Please sign in to comment.