|
|
| version 1.183, 2009/07/06 08:49:49 | version 1.188, 2009/08/08 13:30:20 |
|---|---|
| Line 292 static void split_with_options(Request& | Line 292 static void split_with_options(Request& |
| if(!bits) { | if(!bits) { |
| const String* options=0; | const String* options=0; |
| if(params_count>1) | if(params_count>1) |
| options=¶ms.as_string(1, "options must not be code"); | options=¶ms.as_string(1, OPTIONS_MUST_NOT_BE_CODE); |
| bits=split_options(options); | bits=split_options(options); |
| } | } |
| Line 369 static void _match(Request& r, MethodPar | Line 369 static void _match(Request& r, MethodPar |
| size_t params_count=params.count(); | size_t params_count=params.count(); |
| Value& regexp=params.as_no_junction(0, "regexp must not be code"); | Value& regexp=params.as_no_junction(0, "regexp must not be code"); |
| Value* options=(params_count>1)?¶ms.as_no_junction(1, "options must not be code"):0; | Value* options=(params_count>1)?¶ms.as_no_junction(1, OPTIONS_MUST_NOT_BE_CODE):0; |
| VRegex* vregex; | VRegex* vregex; |
| VRegexCleaner vrcleaner; | VRegexCleaner vrcleaner; |
| if(Value* value=regexp.as(VREGEX_TYPE, false)){ | if(Value* value=regexp.as(VREGEX_TYPE)){ |
| if(options && options->is_defined()) | if(options && options->is_defined()) |
| throw Exception(PARSER_RUNTIME, | throw Exception(PARSER_RUNTIME, |
| 0, | 0, |
| Line 562 const String* sql_result_string(Request& | Line 562 const String* sql_result_string(Request& |
| Temp_lang temp_lang(r, String::L_SQL); | Temp_lang temp_lang(r, String::L_SQL); |
| const String& statement_string=r.process_to_string(statement); | const String& statement_string=r.process_to_string(statement); |
| const char* statement_cstr=statement_string.cstr(String::L_UNSPECIFIED, r.connection()); | const char* statement_cstr=statement_string.untaint_cstr(r.flang, r.connection()); |
| String_sql_event_handlers handlers(statement_string, statement_cstr); | String_sql_event_handlers handlers(statement_string, statement_cstr); |
| Line 630 static void _save(Request& r, MethodPara | Line 630 static void _save(Request& r, MethodPara |
| } | } |
| // write | // write |
| const char* buf=src.cstr(String::L_UNSPECIFIED, r.connection(false/*no error if none*/)); | String::Body sbody=src.cstr_to_string_body_untaint(String::L_AS_IS, r.connection(false/*no error if none*/)); |
| file_write(r.absolute(file_name), | file_write(r.absolute(file_name), sbody.cstr(), sbody.length(), true, do_append); |
| buf, strlen(buf), true, do_append); | |
| } | } |
| static void _normalize(Request& r, MethodParams&) { | static void _normalize(Request& r, MethodParams&) { |