OSDN Git Service

Merge branch 'branch_0.12.0'
authorAtsushi Konno <konn@users.sourceforge.jp>
Fri, 12 Dec 2008 10:44:39 +0000 (19:44 +0900)
committerAtsushi Konno <konn@users.sourceforge.jp>
Fri, 12 Dec 2008 10:44:39 +0000 (19:44 +0900)
Conflicts:
src/chxj_chtml10.c

1  2 
src/chxj_chtml10.c
src/chxj_chtml20.c
src/chxj_chtml30.c
src/chxj_chtml40.c
src/chxj_chtml50.c
src/chxj_jhtml.c
src/chxj_jxhtml.c
src/chxj_tag_util.c
src/chxj_xhtml_mobile_1_0.c
src/mod_chxj.c

@@@ -2128,11 -1859,12 +2128,12 @@@ s_chtml10_start_form_tag(void *pdoc, No
    int post_flag = (attr_method && strcasecmp(attr_method, "post") == 0) ? 1 : 0;
  
    W_L("<form");
 -  if (attr_value) {
 +  if (attr_action) {
      char *q;
-     q = strchr(attr_action, '?');
+     char *new_query_string = NULL;
+     q = strchr(attr_value, '?');
      if (q) {
-       new_hidden_tag = chxj_form_action_to_hidden_tag(r, doc->pool, attr_action, 0, post_flag);
+       new_hidden_tag = chxj_form_action_to_hidden_tag(r, doc->pool, attr_value, 0, post_flag, &new_query_string, CHXJ_TRUE);
        if (new_hidden_tag) {
          *q = 0;
        }
@@@ -1718,12 -1495,11 +1718,13 @@@ s_chtml20_start_form_tag(void *pdoc, No
  
    W_L("<form");
    if (attr_action) {
 +    attr_action = chxj_encoding_parameter(r, attr_action, 0);
 +    attr_action = chxj_add_cookie_parameter(r, attr_action, chtml20->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, 0, post_flag);
+       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;
        }
@@@ -1608,12 -1349,11 +1608,13 @@@ s_chtml30_start_form_tag(void *pdoc, No
  
    W_L("<form");
    if (attr_action) {
 +    attr_action = chxj_encoding_parameter(r, attr_action, 0);
 +    attr_action = chxj_add_cookie_parameter(r, attr_action, chtml30->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, 0, post_flag);
+       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;
        }
@@@ -1558,12 -1355,11 +1558,13 @@@ s_chtml40_start_form_tag(void *pdoc, No
  
    W_L("<form");
    if (attr_action) {
 +    attr_action = chxj_encoding_parameter(r, attr_action, 0);
 +    attr_action = chxj_add_cookie_parameter(r, attr_action, chtml40->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, 0, post_flag);
+       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;
        }
@@@ -1605,12 -1396,11 +1605,13 @@@ s_chtml50_start_form_tag(void *pdoc, No
  
    W_L("<form");
    if (attr_action) {
 +    attr_action = chxj_encoding_parameter(r, attr_action, 0);
 +    attr_action = chxj_add_cookie_parameter(r, attr_action, chtml50->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, 0, post_flag);
+       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;
        }
@@@ -1563,12 -1396,11 +1563,13 @@@ s_jhtml_start_form_tag(void *pdoc, Nod
  
    W_L("<form");
    if (attr_action) {
 +    attr_action = chxj_encoding_parameter(r, attr_action, 0);
 +    attr_action = chxj_add_cookie_parameter(r, attr_action, jhtml->cookie);
      char *q;
+     char *unused = NULL;
      q = strchr(attr_action, '?');
      if (q) {
-       new_hidden_tag = chxj_form_action_to_hidden_tag(r, doc->pool, attr_action, 0, post_flag);
+       new_hidden_tag = chxj_form_action_to_hidden_tag(r, doc->pool, attr_action, 0, post_flag, &unused, CHXJ_FALSE);
        if (new_hidden_tag) {
          *q = 0;
        }
@@@ -1636,12 -1446,11 +1636,13 @@@ s_jxhtml_start_form_tag(void *pdoc, Nod
  
    W_L("<form");
    if (attr_action) {
 +    attr_action = chxj_encoding_parameter(r, attr_action, 1);
 +    attr_action = chxj_add_cookie_parameter(r, attr_action, jxhtml->cookie);
      char *q;
+     char *unused = 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, &unused, CHXJ_FALSE);
        if (new_hidden_tag) {
          *q = 0;
        }
Simple merge
@@@ -1552,12 -1354,11 +1552,13 @@@ s_xhtml_1_0_start_form_tag(void *pdoc, 
  
    W_L("<form");
    if (attr_action) {
 +    attr_action = chxj_encoding_parameter(r, attr_action, 1);
 +    attr_action = chxj_add_cookie_parameter(r, attr_action, xhtml->cookie);
      char *q;
+     char *unused = 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, &unused, CHXJ_FALSE);
        if (new_hidden_tag) {
          *q = 0;
        }
diff --cc src/mod_chxj.c
Simple merge