wget: URL-decode user:password before base64-encoding it into auth hdr. Closes 3625.
authorDenys Vlasenko <vda.linux@googlemail.com>
Sun, 11 Sep 2011 19:04:02 +0000 (21:04 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Sun, 11 Sep 2011 19:04:02 +0000 (21:04 +0200)
commitdd1061b6a79b0161597799e825bfefc27993ace5
treef7099078291da669907c5e3f428c10af27a54417
parent5126cf9a15f9e5c3986be0fc2743b63adcc6b1fb
wget: URL-decode user:password before base64-encoding it into auth hdr. Closes 3625.

function                                             old     new   delta
percent_decode_in_place                                -     152    +152
parse_url                                            304     317     +13
handle_incoming_and_exit                            2795    2798      +3
httpd_main                                           763     760      -3
decodeString                                         152       -    -152
------------------------------------------------------------------------------
(add/remove: 2/1 grow/shrink: 2/1 up/down: 168/-155)           Total: 13 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
include/libbb.h
libbb/percent_decode.c [new file with mode: 0644]
networking/httpd.c
networking/wget.c