OSDN Git Service

* Fine-tuning.
authorAtsushi Konno <konn@users.sourceforge.jp>
Fri, 10 Apr 2009 14:05:01 +0000 (23:05 +0900)
committerAtsushi Konno <konn@users.sourceforge.jp>
Fri, 10 Apr 2009 14:05:01 +0000 (23:05 +0900)
src/chxj_chtml10.c
src/chxj_chtml20.c
src/chxj_chtml30.c
src/chxj_chtml40.c
src/chxj_chtml50.c
src/chxj_encoding.c
src/chxj_jhtml.c
src/chxj_jxhtml.c
src/chxj_xhtml_mobile_1_0.c
src/mod_chxj.c

index 56787e4..4c596be 100644 (file)
@@ -2053,7 +2053,7 @@ s_chtml10_start_input_tag(void *pdoc, Node *node)
   }
 
   if (value && *value != 0) {
-    if (STRCASEEQ('s','S',"submit",type) || STRCASEEQ('r','R',"reset",type)) {
+    if (type && (STRCASEEQ('s','S',"submit",type) || STRCASEEQ('r','R',"reset",type))) {
       apr_size_t value_len = strlen(value);
       value = chxj_conv_z2h(r, value, &value_len, chtml10->entryp);
     }
index aa3eef5..08a3eb3 100644 (file)
@@ -1677,7 +1677,7 @@ s_chtml20_start_input_tag(void *pdoc, Node *node)
     W_L("\"");
   }
   if (value && *value) {
-    if (STRCASEEQ('s','S',"submit",type) || STRCASEEQ('r','R',"reset",type)) {
+    if (type && (STRCASEEQ('s','S',"submit",type) || STRCASEEQ('r','R',"reset",type))) {
       apr_size_t value_len = strlen(value);
       value = chxj_conv_z2h(r, value, &value_len, chtml20->entryp);
     }
index f6f2e0f..ec7a1a8 100644 (file)
@@ -1531,7 +1531,7 @@ s_chtml30_start_input_tag(void *pdoc, Node *node)
     W_L("\"");
   }
   if (value && *value) {
-    if (STRCASEEQ('s','S',"submit",type) || STRCASEEQ('r','R',"reset",type)) {
+    if (type && (STRCASEEQ('s','S',"submit",type) || STRCASEEQ('r','R',"reset",type))) {
       apr_size_t value_len = strlen(value);
       value = chxj_conv_z2h(r, value, &value_len, chtml30->entryp);
     }
index 528c78c..b772f94 100644 (file)
@@ -1537,7 +1537,7 @@ s_chtml40_start_input_tag(void *pdoc, Node *node)
     W_L("\"");
   }
   if (value && *value) {
-    if (STRCASEEQ('s','S',"submit",type) || STRCASEEQ('r','R',"reset",type)) {
+    if (type && (STRCASEEQ('s','S',"submit",type) || STRCASEEQ('r','R',"reset",type))) {
       apr_size_t value_len = strlen(value);
       value = chxj_conv_z2h(r, value, &value_len, chtml40->entryp);
     }
index 24c937e..23081d8 100644 (file)
@@ -1578,7 +1578,7 @@ s_chtml50_start_input_tag(void *pdoc, Node *node)
     W_L("\"");
   }
   if (value && *value) {
-    if (STRCASEEQ('s','S',"submit",type) || STRCASEEQ('r','R',"reset",type)) {
+    if (type && (STRCASEEQ('s','S',"submit",type) || STRCASEEQ('r','R',"reset",type))) {
       apr_size_t value_len = strlen(value);
       value = chxj_conv_z2h(r, value, &value_len, chtml50->entryp);
     }
index a0daacb..5e68e81 100644 (file)
@@ -347,7 +347,7 @@ chxj_encoding_parameter(request_rec *r, const char *value)
 
   int   use_amp_flag;
   
-  DBG(r, "start chxj_encoding_parameter()");
+  DBG(r, "REQ[%X] start chxj_encoding_parameter()", TO_ADDR(r));
 
   src = apr_pstrdup(r->pool, value);
 
@@ -402,7 +402,9 @@ chxj_encoding_parameter(request_rec *r, const char *value)
       if (klen != len) {
         key = chxj_encoding(r, key, &len);
       }
+#if 0  /* XXX:2009/4/10 */
       key = chxj_url_encode(r->pool, key);
+#endif
     }
     val = apr_strtok(pair, "=", &vstat);
     if (! val && sep_pos) {
@@ -415,7 +417,9 @@ chxj_encoding_parameter(request_rec *r, const char *value)
       if (vlen != len) {
         val = chxj_encoding(r, val, &len);
       }
+#if 0  /* XXX:2009/4/10 */
       val = chxj_url_encode(r->pool, val);
+#endif
       if (strlen(param) == 0) {
         param = apr_pstrcat(r->pool, param, key, "=", val, NULL);
       }
@@ -442,7 +446,7 @@ chxj_encoding_parameter(request_rec *r, const char *value)
       }
     }
   }
-  DBG(r, "end   chxj_encoding_parameter()");
+  DBG(r, "REQ[%X] end   chxj_encoding_parameter()", TO_ADDR(r));
 
   if (anchor_pos) {
     return apr_pstrcat(r->pool, src_sv, "?", param, "#", anchor, NULL);
index 85888d9..895a2b1 100644 (file)
@@ -1585,7 +1585,7 @@ s_jhtml_start_input_tag(void *pdoc, Node *node)
     W_L("\"");
   }
   if (value && *value) {
-    if (STRCASEEQ('s','S',"submit",type) || STRCASEEQ('r','R',"reset",type)) {
+    if (type && (STRCASEEQ('s','S',"submit",type) || STRCASEEQ('r','R',"reset",type))) {
       apr_size_t value_len = strlen(value);
       value = chxj_conv_z2h(r, value, &value_len, jhtml->entryp);
     }
index a268079..e24efb3 100644 (file)
@@ -1635,7 +1635,7 @@ s_jxhtml_start_input_tag(void *pdoc, Node *node)
     W_L("\"");
   }
   if (value && *value) {
-    if (STRCASEEQ('s','S',"submit",type) || STRCASEEQ('r','R',"reset",type)) {
+    if (type && (STRCASEEQ('s','S',"submit",type) || STRCASEEQ('r','R',"reset",type))) {
       apr_size_t value_len = strlen(value);
       value = chxj_conv_z2h(r, value, &value_len, jxhtml->entryp);
     }
index b5d9fb5..f3096ee 100644 (file)
@@ -1532,7 +1532,7 @@ s_xhtml_1_0_start_input_tag(void *pdoc, Node *node)
     W_L("\"");
   }
   if (value && *value) {
-    if (STRCASEEQ('s','S',"submit",type) || STRCASEEQ('r','R',"reset",type)) {
+    if (type && (STRCASEEQ('s','S',"submit",type) || STRCASEEQ('r','R',"reset",type))) {
       apr_size_t value_len = strlen(value);
       value = chxj_conv_z2h(r, value, &value_len, xhtml->entryp);
     }
index 6c7a112..a2a8100 100644 (file)
@@ -68,7 +68,6 @@
 #endif
 #include "chxj_serf.h"
 #include "chxj_add_device_env.h"
-#include "chxj_conv_z2h.h"
 #include "chxj_header_inf.h"
 #include "chxj_jreserved_tag.h"
 
@@ -454,11 +453,6 @@ chxj_convert(request_rec *r, const char **src, apr_size_t *len, device_table *sp
                                                                 entryp, 
                                                                 cookie);
       }
-      if (dst && *len) {
-#if 0 /* KONNO */
-        dst = chxj_conv_z2h(r, dst, len, entryp);
-#endif
-      }
     }
   }
   ap_set_content_length(r, *len);