|
|
| version 1.185, 2009/07/07 05:47:43 | 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 630 static void _save(Request& r, MethodPara | Line 630 static void _save(Request& r, MethodPara |
| } | } |
| // write | // write |
| String::Body sbody=src.cstr_to_string_body_untaint(String::L_AS_IS, 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), sbody.cstr(), sbody.length(), true, do_append); | file_write(r.absolute(file_name), sbody.cstr(), sbody.length(), true, do_append); |
| } | } |
| static void _normalize(Request& r, MethodParams&) { | static void _normalize(Request& r, MethodParams&) { |