diff options
author | Ron Yorston <rmy@pobox.com> | 2020-11-12 08:27:51 +0000 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2020-11-12 08:27:51 +0000 |
commit | ead8b92e3d66ab45235e137f85fb3a529dcc64ef (patch) | |
tree | af268270382dad969218063d4a8120fc91a9e631 /networking/httpd.c | |
parent | 567728c22dddea4ed33b8a69641ba2e0c3f1f600 (diff) | |
parent | 64981b4c8e88812c322bee3832f1d421ff670ed5 (diff) | |
download | busybox-w32-ead8b92e3d66ab45235e137f85fb3a529dcc64ef.tar.gz busybox-w32-ead8b92e3d66ab45235e137f85fb3a529dcc64ef.tar.bz2 busybox-w32-ead8b92e3d66ab45235e137f85fb3a529dcc64ef.zip |
Merge branch 'busybox' into merge
Diffstat (limited to 'networking/httpd.c')
-rw-r--r-- | networking/httpd.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/networking/httpd.c b/networking/httpd.c index 7684ca4e7..daa3ca1d0 100644 --- a/networking/httpd.c +++ b/networking/httpd.c | |||
@@ -1038,6 +1038,12 @@ static char *encodeString(const char *string) | |||
1038 | */ | 1038 | */ |
1039 | static void decodeBase64(char *Data) | 1039 | static void decodeBase64(char *Data) |
1040 | { | 1040 | { |
1041 | # if ENABLE_BASE64 || ENABLE_UUDECODE | ||
1042 | /* Call decode_base64() from uuencode.c */ | ||
1043 | char *eptr = Data; | ||
1044 | decode_base64(&eptr, Data); | ||
1045 | *eptr = '\0'; | ||
1046 | # else | ||
1041 | const unsigned char *in = (const unsigned char *)Data; | 1047 | const unsigned char *in = (const unsigned char *)Data; |
1042 | /* The decoded size will be at most 3/4 the size of the encoded */ | 1048 | /* The decoded size will be at most 3/4 the size of the encoded */ |
1043 | unsigned ch = 0; | 1049 | unsigned ch = 0; |
@@ -1071,6 +1077,7 @@ static void decodeBase64(char *Data) | |||
1071 | } | 1077 | } |
1072 | } | 1078 | } |
1073 | *Data = '\0'; | 1079 | *Data = '\0'; |
1080 | # endif | ||
1074 | } | 1081 | } |
1075 | #endif | 1082 | #endif |
1076 | 1083 | ||