Re: cvs: php4 /ext/standard url_scanner_ex.re

From: Date: Tue, 26 Mar 2002 10:49:47 +0000
Subject: Re: cvs: php4 /ext/standard url_scanner_ex.re
References: 1  Groups: php.cvs 
Request: Send a blank email to php-cvs+get-10698@lists.php.net to get a copy of this message
Hello Sascha, do you think this should be merged to the branch? Derick On Tue, 26 Mar 2002, Sascha Schumann wrote: > sas Tue Mar 26 05:20:05 2002 EDT > > Modified files: > /php4/ext/standard url_scanner_ex.re > Log: > If an argument (<tag val=argument..) was not quoted, leave it that way. > > > Index: php4/ext/standard/url_scanner_ex.re > diff -u php4/ext/standard/url_scanner_ex.re:1.46 php4/ext/standard/url_scanner_ex.re:1.47 > --- php4/ext/standard/url_scanner_ex.re:1.46 Mon Mar 4 03:37:02 2002 > +++ php4/ext/standard/url_scanner_ex.re Tue Mar 26 05:20:05 2002 > @@ -140,20 +140,22 @@ > #undef YYLIMIT > #undef YYMARKER > > -static inline void tag_arg(url_adapt_state_ex_t *ctx, char quote TSRMLS_DC) > +static inline void tag_arg(url_adapt_state_ex_t *ctx, char quotes, char type TSRMLS_DC) > { > char f = 0; > > if (strncasecmp(ctx->arg.c, ctx->lookup_data, ctx->arg.len) == 0) > f = 1; > > - smart_str_appendc(&ctx->result, quote); > + if (quotes) > + smart_str_appendc(&ctx->result, type); > if (f) { > append_modified_url(&ctx->val, &ctx->result, &ctx->q_name, > &ctx->q_value, PG(arg_separator).output); > } else { > smart_str_append(&ctx->result, &ctx->val); > } > - smart_str_appendc(&ctx->result, quote); > + if (quotes) > + smart_str_appendc(&ctx->result, type); > } > > enum { > @@ -221,7 +223,7 @@ > static inline void handle_val(STD_PARA, char quotes, char type) > { > smart_str_setl(&ctx->val, start + quotes, YYCURSOR - start - quotes * 2); > - tag_arg(ctx, type TSRMLS_CC); > + tag_arg(ctx, quotes, type TSRMLS_CC); > } > > #ifdef SCANNER_DEBUG > > > > -- > PHP CVS Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > ----------------------------------------------------------------------- PHP: Scripting the Web - derick@php.net All your branches are belong to me! SRM: Script Running Machine - www.vl-srm.net -----------------------------------------------------------------------

« previous php.cvs (#10698) next »