wget: fix redirection from HTTP to FTP server
authorDenys Vlasenko <vda.linux@googlemail.com>
Sun, 28 Jun 2009 01:33:57 +0000 (03:33 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Sun, 28 Jun 2009 01:33:57 +0000 (03:33 +0200)
commitf1fab0924285cca27903a1e4a4498c7205810742
tree3b1224f5faeb82e4f9a1ba5d9adf29579a103e23
parentab0c8d7b35fbbe3e038800587cde0e3a99907187
wget: fix redirection from HTTP to FTP server

while at it, sanitize redirection in general; add printout
of every redirection hop; make sure we won't print any non-ASCII
garbage from remote server in error meesages.

function                                             old     new   delta
sanitize_string                                        -      14     +14
parse_url                                            294     301      +7
gethdr                                               190     197      +7
wget_main                                           2326    2331      +5
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 3/0 up/down: 33/0)               Total: 33 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
networking/wget.c