mirror of
https://github.com/php/php-src.git
synced 2026-04-10 01:23:53 +02:00
Make the generated <input> lower case and terminated with a /,
to be xhtml-compliant.
This commit is contained in:
@@ -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, "\" />");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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, "\" />");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user