1
0
mirror of https://github.com/apache/httpd.git synced 2025-08-07 04:02:58 +03:00

Now input-ize the values... next step is to tie into the

actual POST

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1728166 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Jim Jagielski
2016-02-02 18:04:46 +00:00
parent ee6d08cab1
commit 3d4399435e
2 changed files with 26 additions and 20 deletions

View File

@@ -1022,8 +1022,9 @@ static void hc_show_exprs(request_rec *r)
continue;
}
cond = (hc_condition_t *)elts[i].val;
ap_rprintf(r, "<tr><td>%s</td><td>%s</td></tr>\n", elts[i].key,
cond->expr);
ap_rprintf(r, "<tr><td>%s</td><td>%s</td></tr>\n",
ap_escape_html(r->pool, elts[i].key),
ap_escape_html(r->pool, cond->expr));
}
ap_rputs("</table><hr/>\n", r);
}
@@ -1044,9 +1045,10 @@ static void hc_select_exprs(request_rec *r, const char *expr)
if (!elts[i].key) {
continue;
}
ap_rprintf(r, "<option value='%s' %s >%s</option>\n", elts[i].key,
ap_rprintf(r, "<option value='%s' %s >%s</option>\n",
ap_escape_html(r->pool, elts[i].key),
(!ap_casecmpstr(elts[i].key, expr)) ? "selected" : "",
elts[i].key);
ap_escape_html(r->pool, elts[i].key));
}
}