mirror of
https://github.com/netsurf-browser/netsurf
synced 2025-01-03 09:44:24 +03:00
Fix handling of no scheme
svn path=/trunk/netsurf/; revision=13055
This commit is contained in:
parent
8f554bb0e5
commit
ee930d97e4
@ -39,6 +39,8 @@ static const struct test_pairs create_tests[] = {
|
|||||||
{ "http:/a/b", "http://a/b" },
|
{ "http:/a/b", "http://a/b" },
|
||||||
{ "http://a", "http://a/" },
|
{ "http://a", "http://a/" },
|
||||||
{ "http://a/b", "http://a/b" },
|
{ "http://a/b", "http://a/b" },
|
||||||
|
{ "www.example.org", "http://www.example.org/" },
|
||||||
|
{ "www.example.org/x", "http://www.example.org/x" },
|
||||||
|
|
||||||
{ "http://www.netsurf-browser.org:8080/",
|
{ "http://www.netsurf-browser.org:8080/",
|
||||||
"http://www.netsurf-browser.org:8080/" },
|
"http://www.netsurf-browser.org:8080/" },
|
||||||
|
@ -263,6 +263,8 @@ static void nsurl__get_string_markers(const char const *url_s,
|
|||||||
|
|
||||||
} else {
|
} else {
|
||||||
/* Not found a scheme */
|
/* Not found a scheme */
|
||||||
|
pos = url_s + marker.start;
|
||||||
|
|
||||||
if (joining == false) {
|
if (joining == false) {
|
||||||
/* Assuming no scheme == http */
|
/* Assuming no scheme == http */
|
||||||
is_http = true;
|
is_http = true;
|
||||||
|
Loading…
Reference in New Issue
Block a user