|
|
| version 1.241, 2019/11/13 22:05:48 | version 1.242, 2019/11/13 22:27:15 |
|---|---|
| Line 706 static void _base64(Request& r, MethodPa | Line 706 static void _base64(Request& r, MethodPa |
| pa_base64_decode(cstr, strlen(cstr), decoded, length, options); | pa_base64_decode(cstr, strlen(cstr), decoded, length, options); |
| if(decoded && length){ | if(decoded && length){ |
| if(memchr((const char*)decoded, 0, length)) | if(memchr(decoded, 0, length)) |
| throw Exception(PARSER_RUNTIME, 0, "Invalid \\x00 character found while decode to string. Decode it to file instead."); | throw Exception(PARSER_RUNTIME, 0, "Invalid \\x00 character found while decoding to string. Decode to file instead."); |
| fix_line_breaks(decoded, length); | fix_line_breaks(decoded, length); |
| if(length) | if(length) |
| r.write(*new String(decoded, String::L_TAINTED)); | r.write(*new String(decoded, String::L_TAINTED)); |
| } | } |