Re: URL rewriter outputs a spurious " /"
| From: | colin mcdonald | Date: | Thu, 19 Jul 2001 20:15:02 +0000 |
| Subject: | Re: URL rewriter outputs a spurious " /" | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-60331@lists.php.net to get a copy of this message | ||
I'm not sure what the url rewriter does,
but I know XHTML and XML requires a trailing slash in tag that have no end tags (like img, input, etc)
something like this is valid:
<input name="foo" id="foo" type="text" value="bar" />
maybe that is what this code is writing?
my 2c,
colin
dans@free.fr wrote:
From: dans@free.frOperating system: linux suse 6.4PHP version: 4.0.6 PHP Bug Type: Session relatedBug description: URL rewriter outputs a spurious " /" the rewriter adds a " /" befor the closing bracket in the <form> rewriting. following a diff to patch it. sincerely Daniel S.*** ext/standard/url_scanner_ex.c Thu Jun 21 08:29:04 2001--- ext/standard/url_scanner_ex_modif.c Thu Jul 19 14:14:34 2001 *************** static inline void handle_form(STD_PARA) *** 178,182 ****smart_str_appends(&ctx->result, "\"value=\""); smart_str_append(&ctx->result,&ctx->q_value); ! smart_str_appends(&ctx->result, "\"/>");} } --- 178,182 ----smart_str_appends(&ctx->result, "\"value=\""); smart_str_append(&ctx->result,&ctx->q_value); ! smart_str_appends(&ctx->result,"\">");} }