From ba114dc997d595b84b02a128d4063db12d43009f Mon Sep 17 00:00:00 2001 From: Chuck Hagenbuch Date: Tue, 2 Jan 2001 20:39:27 +0000 Subject: [PATCH] Make the generated lower case and terminated with a /, to be xhtml-compliant. --- ext/standard/url_scanner_ex.c | 6 +++--- 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 99e0c2f323a..e7becb5c3c3 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, "result, "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 3c6678538c1..30606580973 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, "result, "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, "\" />"); } }