cvs: php4 /ext/standard url_scanner_ex.c url_scanner_ex.re
| From: | Chuck Hagenbuch | Date: | Tue, 02 Jan 2001 20:39:27 +0000 |
| Subject: | cvs: php4 /ext/standard url_scanner_ex.c url_scanner_ex.re | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-3326@lists.php.net to get a copy of this message | ||
chagenbu Tue Jan 2 12:39:27 2001 EDT
Modified files:
/php4/ext/standard url_scanner_ex.c url_scanner_ex.re
Log:
Make the generated <input> lower case and terminated with a /,
to be xhtml-compliant.
Index: php4/ext/standard/url_scanner_ex.c
diff -u php4/ext/standard/url_scanner_ex.c:1.26 php4/ext/standard/url_scanner_ex.c:1.27
--- php4/ext/standard/url_scanner_ex.c:1.26 Fri Dec 22 14:52:11 2000
+++ php4/ext/standard/url_scanner_ex.c Tue Jan 2 12:39:27 2001
@@ -174,11 +174,11 @@
static inline void handle_form(STD_PARA)
{
if (ctx->tag.len == 4 && strncasecmp(ctx->tag.c, "form", 4) == 0) {
- smart_str_appends(&ctx->result, "<INPUT TYPE=\"HIDDEN\"
NAME=\"");
+ smart_str_appends(&ctx->result, "<input type=\"hidden\"
name=\"");
smart_str_append(&ctx->result, &ctx->q_name);
- smart_str_appends(&ctx->result, "\" VALUE=\"");
+ smart_str_appends(&ctx->result, "\" value=\"");
smart_str_append(&ctx->result, &ctx->q_value);
- smart_str_appends(&ctx->result, "\">");
+ smart_str_appends(&ctx->result, "\" />");
}
}
Index: php4/ext/standard/url_scanner_ex.re
diff -u php4/ext/standard/url_scanner_ex.re:1.27 php4/ext/standard/url_scanner_ex.re:1.28
--- php4/ext/standard/url_scanner_ex.re:1.27 Fri Dec 22 14:52:11 2000
+++ php4/ext/standard/url_scanner_ex.re Tue Jan 2 12:39:27 2001
@@ -172,11 +172,11 @@
static inline void handle_form(STD_PARA)
{
if (ctx->tag.len == 4 && strncasecmp(ctx->tag.c, "form", 4) == 0) {
- smart_str_appends(&ctx->result, "<INPUT TYPE=\"HIDDEN\"
NAME=\"");
+ smart_str_appends(&ctx->result, "<input type=\"hidden\"
name=\"");
smart_str_append(&ctx->result, &ctx->q_name);
- smart_str_appends(&ctx->result, "\" VALUE=\"");
+ smart_str_appends(&ctx->result, "\" value=\"");
smart_str_append(&ctx->result, &ctx->q_value);
- smart_str_appends(&ctx->result, "\">");
+ smart_str_appends(&ctx->result, "\" />");
}
}