mirror of
https://github.com/moparisthebest/wget
synced 2024-07-03 16:38:41 -04:00
[svn] Correctly handle URLs where / does not follow the host name.
Published in <sxsn1fag6zu.fsf@florida.arsdigita.de>.
This commit is contained in:
parent
34ea31bb01
commit
b72b6cf387
@ -1,3 +1,8 @@
|
||||
2000-11-08 Hrvoje Niksic <hniksic@arsdigita.com>
|
||||
|
||||
* url.c (construct): Handle the case where host name is not
|
||||
followed by a slash.
|
||||
|
||||
2000-11-06 Hrvoje Niksic <hniksic@arsdigita.com>
|
||||
|
||||
* init.c: commands[] need to be sorted! ("base" wasn't.)
|
||||
|
@ -1369,6 +1369,13 @@ construct (const char *url, const char *sub, int subsize, int no_proto)
|
||||
start_insert = end + 1;
|
||||
need_explicit_slash = 1;
|
||||
}
|
||||
else if (last_slash && last_slash != url && last_slash[-1] == '/')
|
||||
{
|
||||
/* example: http://host" */
|
||||
/* ^ */
|
||||
start_insert = end + 1;
|
||||
need_explicit_slash = 1;
|
||||
}
|
||||
else
|
||||
{
|
||||
/* example: "whatever/foo/bar" */
|
||||
|
Loading…
Reference in New Issue
Block a user