|
|
| version 1.227, 2016/09/08 20:41:47 | version 1.230, 2016/10/04 13:23:46 |
|---|---|
| Line 535 const String* sql_result_string(Request& | Line 535 const String* sql_result_string(Request& |
| } | } |
| if(Value* vlimit=options->get(sql_limit_name)) { | if(Value* vlimit=options->get(sql_limit_name)) { |
| valid_options++; | valid_options++; |
| limit=(ulong)r.process_to_value(*vlimit).as_double(); | limit=(ulong)r.process(*vlimit).as_double(); |
| } | } |
| if(Value* voffset=options->get(sql_offset_name)) { | if(Value* voffset=options->get(sql_offset_name)) { |
| valid_options++; | valid_options++; |
| offset=(ulong)r.process_to_value(*voffset).as_double(); | offset=(ulong)r.process(*voffset).as_double(); |
| } | } |
| if((default_code=options->get(sql_default_name))) { | if((default_code=options->get(sql_default_name))) { |
| valid_options++; | valid_options++; |
| Line 620 static void _save(Request& r, MethodPara | Line 620 static void _save(Request& r, MethodPara |
| // ^file.save[filespec;$.charset[] $.append(true)] | // ^file.save[filespec;$.charset[] $.append(true)] |
| int valid_options=0; | int valid_options=0; |
| if(Value* vcharset_name=options->get(PA_CHARSET_NAME)){ | if(Value* vcharset_name=options->get(PA_CHARSET_NAME)){ |
| asked_charset=&::charsets.get(vcharset_name->as_string()); | asked_charset=&pa_charsets.get(vcharset_name->as_string()); |
| valid_options++; | valid_options++; |
| } | } |
| if(Value* vappend=options->get(MODE_APPEND)){ | if(Value* vappend=options->get(MODE_APPEND)){ |
| Line 702 static void _base64(Request& r, MethodPa | Line 702 static void _base64(Request& r, MethodPa |
| if(HashStringValue* options=params.as_hash(1)) { | if(HashStringValue* options=params.as_hash(1)) { |
| int valid_options=0; | int valid_options=0; |
| if(Value* vstrict=options->get(BASE64_STRICT_OPTION_NAME)) { | if(Value* vstrict=options->get(BASE64_STRICT_OPTION_NAME)) { |
| strict=r.process_to_value(*vstrict).as_bool(); | strict=r.process(*vstrict).as_bool(); |
| valid_options++; | valid_options++; |
| } | } |
| if(valid_options!=options->count()) | if(valid_options!=options->count()) |
| Line 763 static void _unescape(Request& r, Method | Line 763 static void _unescape(Request& r, Method |
| if(HashStringValue* options=params.as_hash(2)) { | if(HashStringValue* options=params.as_hash(2)) { |
| int valid_options=0; | int valid_options=0; |
| if(Value* vcharset_name=options->get(PA_CHARSET_NAME)){ | if(Value* vcharset_name=options->get(PA_CHARSET_NAME)){ |
| from_charset=&::charsets.get(vcharset_name->as_string()); | from_charset=&pa_charsets.get(vcharset_name->as_string()); |
| valid_options++; | valid_options++; |
| } | } |
| if(valid_options!=options->count()) | if(valid_options!=options->count()) |
| Line 776 static void _unescape(Request& r, Method | Line 776 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 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); |