From 5cec354b189c4fd48f17dfbeddae0ccb5281c1db Mon Sep 17 00:00:00 2001 From: konn Date: Wed, 7 Jun 2006 09:51:24 +0000 Subject: [PATCH] *** empty log message *** git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/modchxj/mod_chxj/trunk@246 1a406e8e-add9-4483-a2c8-d8cac5b7c224 --- src/chxj_xhtml_mobile_1_0.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/chxj_xhtml_mobile_1_0.c b/src/chxj_xhtml_mobile_1_0.c index 1848a01f..baf0c4c2 100644 --- a/src/chxj_xhtml_mobile_1_0.c +++ b/src/chxj_xhtml_mobile_1_0.c @@ -958,7 +958,7 @@ s_xhtml_1_0_start_a_tag(xhtml_t* xhtml, Node* node) char* name = qs_get_attr_name(doc,attr); char* value = qs_get_attr_value(doc,attr); - if (strcasecmp(name, "name") == 0) { + if ((*name == 'n' || *name == 'N') && strcasecmp(name, "name") == 0) { xhtml->out = apr_pstrcat(r->pool, xhtml->out, " id=\"", @@ -967,7 +967,7 @@ s_xhtml_1_0_start_a_tag(xhtml_t* xhtml, Node* node) NULL); } else - if (strcasecmp(name, "href") == 0) { + if ((*name == 'h' || *name == 'H') && strcasecmp(name, "href") == 0) { xhtml->out = apr_pstrcat(r->pool, xhtml->out, " href=\"", @@ -976,7 +976,7 @@ s_xhtml_1_0_start_a_tag(xhtml_t* xhtml, Node* node) NULL); } else - if (strcasecmp(name, "accesskey") == 0) { + if ((*name == 'a' || *name == 'A') && strcasecmp(name, "accesskey") == 0) { xhtml->out = apr_pstrcat(r->pool, xhtml->out, " accesskey=\"", -- 2.11.0