|
|
| version 1.258, 2024/10/20 14:38:46 | version 1.260, 2024/11/04 03:53:25 |
|---|---|
| Line 1 | Line 1 |
| /** @file | /** @file |
| Parser: @b string parser class. | Parser: @b string parser class. |
| Copyright (c) 2001-2023 Art. Lebedev Studio (http://www.artlebedev.com) | Copyright (c) 2001-2024 Art. Lebedev Studio (http://www.artlebedev.com) |
| Authors: Konstantin Morshnev <moko@design.ru>, Alexandr Petrosian <paf@design.ru> | Authors: Konstantin Morshnev <moko@design.ru>, Alexandr Petrosian <paf@design.ru> |
| */ | */ |
| Line 814 static void _unescape(Request& r, Method | Line 814 static void _unescape(Request& r, Method |
| } else if(mode==UNESCAPE_MODE_URI){ | } else if(mode==UNESCAPE_MODE_URI){ |
| mode_js=false; | mode_js=false; |
| } else { | } else { |
| throw Exception(PARSER_RUNTIME, &mode, "is invalid mode, must be either '" UNESCAPE_MODE_JS "' or '" UNESCAPE_MODE_URI "'"); | throw Exception(PARSER_RUNTIME, &mode, "is an invalid mode, must be either '" UNESCAPE_MODE_JS "' or '" UNESCAPE_MODE_URI "'"); |
| } | } |
| const char* unescaped=unescape_chars(src.cstr(), src.length(), from_charset, mode_js); | const char* unescaped=unescape_chars(src.cstr(), src.length(), from_charset, mode_js); |