diff options
author | Chuck Hagenbuch <chagenbu@php.net> | 2001-01-02 20:39:27 +0000 |
---|---|---|
committer | Chuck Hagenbuch <chagenbu@php.net> | 2001-01-02 20:39:27 +0000 |
commit | ba114dc997d595b84b02a128d4063db12d43009f (patch) | |
tree | 98c7f36cf198525fc0b81848264f77d792a77b20 /ext | |
parent | a35b9c45f564196648daf9b91173523652b089f3 (diff) | |
download | php-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.c | 6 | ||||
-rw-r--r-- | ext/standard/url_scanner_ex.re | 6 |
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, "\" />"); } } |