summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorChuck Hagenbuch <chagenbu@php.net>2001-01-02 20:39:27 +0000
committerChuck Hagenbuch <chagenbu@php.net>2001-01-02 20:39:27 +0000
commitba114dc997d595b84b02a128d4063db12d43009f (patch)
tree98c7f36cf198525fc0b81848264f77d792a77b20 /ext
parenta35b9c45f564196648daf9b91173523652b089f3 (diff)
downloadphp-git-ba114dc997d595b84b02a128d4063db12d43009f.tar.gz
Make the generated <input> lower case and terminated with a /,
to be xhtml-compliant.
Diffstat (limited to 'ext')
-rw-r--r--ext/standard/url_scanner_ex.c6
-rw-r--r--ext/standard/url_scanner_ex.re6
2 files changed, 6 insertions, 6 deletions
diff --git a/ext/standard/url_scanner_ex.c b/ext/standard/url_scanner_ex.c
index 99e0c2f323..e7becb5c3c 100644
--- a/ext/standard/url_scanner_ex.c
+++ b/ext/standard/url_scanner_ex.c
@@ -174,11 +174,11 @@ static inline void passthru(STD_PARA)
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, "\" />");
}
}
diff --git a/ext/standard/url_scanner_ex.re b/ext/standard/url_scanner_ex.re
index 3c6678538c..3060658097 100644
--- a/ext/standard/url_scanner_ex.re
+++ b/ext/standard/url_scanner_ex.re
@@ -172,11 +172,11 @@ static inline void passthru(STD_PARA)
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, "\" />");
}
}