mirror of
https://github.com/emikulic/darkhttpd.git
synced 2023-08-10 21:13:08 +03:00
Improve make_safe_uri coverage.
This commit is contained in:
parent
f3acb93b93
commit
9222bbc9d8
@ -236,6 +236,7 @@ def setUpModule():
|
||||
["no leading slash", "dir/../", "assertIsInvalid"],
|
||||
["invalid up dir", "/../", "assertIsInvalid"],
|
||||
["fancy invalid up dir", "/./dir/./../../", "assertIsInvalid"],
|
||||
["extra slashes 2", "//.d", "assertNotFound"],
|
||||
["not found", "/not_found.txt", "assertNotFound"],
|
||||
["forbidden", "/forbidden/x", "assertForbidden"],
|
||||
["unreadable", "/unreadable/", "assertUnreadable"],
|
||||
|
@ -31,6 +31,8 @@ static char const *tests[] = {
|
||||
"/", "/",
|
||||
"/.", "/",
|
||||
"/./", "/",
|
||||
"/.d", "/.d",
|
||||
"//.d", "/.d",
|
||||
"/../", NULL,
|
||||
"/abc", "/abc",
|
||||
"/abc/", "/abc/",
|
||||
|
Loading…
Reference in New Issue
Block a user