1
0
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:
Chuck Hagenbuch
2001-01-02 20:39:27 +00:00
parent a35b9c45f5
commit ba114dc997
2 changed files with 6 additions and 6 deletions

View File

@@ -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, "\" />");
}
}

View File

@@ -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, "\" />");
}
}