Commit 3eb90ca3 authored by Tim Rühsen's avatar Tim Rühsen

Revert "Fix -k/--convert-links"

This reverts commit 89ff57ee.

The commit fixed a bug by generating a regression at another place.
See #415 (comment 124641970)
parent d142bfbe
Pipeline #40292583 failed with stages
in 51 minutes and 53 seconds
......@@ -898,7 +898,6 @@ int wget_iri_compare(wget_iri_t *iri1, wget_iri_t *iri2)
return 1;
}
*/
if ((n = wget_strcasecmp(iri1->path, iri2->path)))
return n;
......
......@@ -695,16 +695,6 @@ static void add_url_to_queue(const char *url, wget_iri_t *base, const char *enco
return;
}
if (!iri->path || !*iri->path) {
if (iri->path_allocated) {
xfree(iri->path);
iri->path_allocated=0;
}
iri->path = config.default_page;
}
wget_debug_printf(_("Adding URL: %s path=%s\n"), url, iri->path);
// Allow plugins to intercept URLs
plugin_db_forward_url(iri, &plugin_verdict);
if (plugin_verdict.reject) {
......@@ -859,14 +849,6 @@ static void add_url(JOB *job, const char *encoding, const char *url, int flags)
return;
}
if (!iri->path || !*iri->path) {
if (iri->path_allocated) {
xfree(iri->path);
iri->path_allocated=0;
}
iri->path = config.default_page;
}
// Allow plugins to intercept URL
plugin_db_forward_url(iri, &plugin_verdict);
......
......@@ -40,7 +40,6 @@ int main(void)
"<style> html { background: url(htTp://localhost:{{port}}/second.html); }</style>" \
"<style> div { background: url(htTp://localhost:{{port}}/second.html); }</style>" \
"</head><body><p>A link to a" \
" <a href=\"/\">xxx</a>." \
" <a href=\"second.html\">second page</a>." \
" <a href=\"htTp://localhost:{{port}}/second.html\">second page</a>." \
" <a href=\"subdir/third.html\">third page</a>." \
......@@ -72,7 +71,6 @@ int main(void)
"<style> html { background: url(second.html); }</style>" \
"<style> div { background: url(second.html); }</style>" \
"</head><body><p>A link to a" \
" <a href=\"index.html\">xxx</a>." \
" <a href=\"second.html\">second page</a>." \
" <a href=\"second.html\">second page</a>." \
" <a href=\"subdir/third.html\">third page</a>." \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment