OSDN Git Service

Merge branch 'branch_0.12.0' into branch_0.13.0
[modchxj/mod_chxj.git] / src / chxj_chtml20.c
index 0884305..ecbcdb9 100644 (file)
@@ -1978,7 +1978,7 @@ s_chtml20_start_input_tag(void *pdoc, Node *node)
     W_L("\"");
   }
   if (attr_value) {
-    if (STRCASEEQ('s','S',"submit",attr_type) || STRCASEEQ('r','R',"reset",attr_type)) {
+    if (attr_type && (STRCASEEQ('s','S',"submit",attr_type) || STRCASEEQ('r','R',"reset",attr_type))) {
       apr_size_t value_len = strlen(attr_value);
       attr_value = chxj_conv_z2h(r, attr_value, &value_len, chtml20->entryp);
     }