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);
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) {