OSDN Git Service

* Added GUID parameter converter for branch_0.13.0.
authorAtsushi Konno <konn@users.sourceforge.jp>
Fri, 12 Dec 2008 10:51:05 +0000 (19:51 +0900)
committerAtsushi Konno <konn@users.sourceforge.jp>
Fri, 12 Dec 2008 10:51:05 +0000 (19:51 +0900)
src/chxj_chtml10.c
src/chxj_ixhtml10.c

index f2fc2e3..b5d0bac 100644 (file)
@@ -2131,15 +2131,15 @@ s_chtml10_start_form_tag(void *pdoc, Node *node)
   if (attr_action) {
     char *q;
     char *new_query_string = NULL;
-    q = strchr(attr_value, '?');
+    q = strchr(attr_action, '?');
     if (q) {
-      new_hidden_tag = chxj_form_action_to_hidden_tag(r, doc->pool, attr_value, 0, post_flag, &new_query_string, CHXJ_TRUE);
+      new_hidden_tag = chxj_form_action_to_hidden_tag(r, doc->pool, attr_action, 0, post_flag, &new_query_string, CHXJ_TRUE);
       if (new_hidden_tag) {
         *q = 0;
       }
     }
     W_L(" action=\"");
-    W_V(attr_value);
+    W_V(attr_action);
     if (new_query_string) {
       W_L("?");
       W_V(new_query_string);
index deb864e..0fc1dc9 100644 (file)
@@ -1709,13 +1709,18 @@ s_ixhtml10_start_form_tag(void *pdoc, Node *node)
     attr_action = chxj_encoding_parameter(r, attr_action, 1);
     attr_action = chxj_add_cookie_parameter(r, attr_action, ixhtml10->cookie);
     char *q;
+    char *new_query_string = NULL;
     q = strchr(attr_action, '?');
     if (q) {
-      new_hidden_tag = chxj_form_action_to_hidden_tag(r, doc->pool, attr_action, 1, post_flag);
+      new_hidden_tag = chxj_form_action_to_hidden_tag(r, doc->pool, attr_action, 1, post_flag, &new_query_string, CHXJ_TRUE);
       *q = 0;
     }
     W_L(" action=\"");
     W_V(attr_action);
+    if (new_query_string) {
+      W_L("?");
+      W_V(new_query_string);
+    }
     W_L("\"");
   }
   if (attr_method) {