Browse Source

Make the generated <input> lower case and terminated with a /,

to be xhtml-compliant.
PHP-4.0.5
Chuck Hagenbuch 26 years ago
parent
commit
ba114dc997
  1. 6
      ext/standard/url_scanner_ex.c
  2. 6
      ext/standard/url_scanner_ex.re

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

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

Loading…
Cancel
Save