mirror of
https://github.com/curl/curl.git
synced 2026-08-26 09:23:31 +03:00
parent
e2ca8408c4
commit
f1959ae962
3 changed files with 16 additions and 2 deletions
|
|
@ -886,7 +886,11 @@ static const struct urltestcase get_url_list[] = {
|
|||
{"file:///.", "file:///", 0, 0, CURLUE_OK},
|
||||
{"file:///./", "file:///", 0, 0, CURLUE_OK},
|
||||
{"file:///a", "file:///a", 0, 0, CURLUE_OK},
|
||||
{"file:./", "file://", 0, 0, CURLUE_OK},
|
||||
{"file:./", "", 0, 0, CURLUE_BAD_FILE_URL},
|
||||
{"file:foo", "", 0, 0, CURLUE_BAD_FILE_URL},
|
||||
{"file:foo/bar", "", 0, 0, CURLUE_BAD_FILE_URL},
|
||||
{"file:?q", "", 0, 0, CURLUE_BAD_FILE_URL},
|
||||
{"file:#f", "", 0, 0, CURLUE_BAD_FILE_URL},
|
||||
{"http://example.com/hello/../here",
|
||||
"http://example.com/hello/../here",
|
||||
CURLU_PATH_AS_IS, 0, CURLUE_OK},
|
||||
|
|
|
|||
|
|
@ -267,6 +267,10 @@ static CURLcode test_unit1675(const char *arg)
|
|||
{"file:///etc/hosts", "/etc/hosts", TRUE},
|
||||
{"file://localhost/etc/hosts", "/etc/hosts", TRUE},
|
||||
{"file://apple/etc/hosts", "/etc/hosts", FALSE},
|
||||
{"file:foo", NULL, FALSE},
|
||||
{"file:./", NULL, FALSE},
|
||||
{"file:?q", NULL, FALSE},
|
||||
{"file:#f", NULL, FALSE},
|
||||
#ifdef _WIN32
|
||||
{"file:///c:/windows/system32", "c:/windows/system32", TRUE},
|
||||
{"file://localhost/c:/windows/system32", "c:/windows/system32", TRUE},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue