This patch is a bit more paranoid than Kestutis's, but this is user
supplied input, so a bit of paranoia is healthy.
PR: 8771
Submitted by: Kestutis Kupciunas <kesha@soften.ktu.lt>
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/1.3.x@92017
13f79535-47bb-0310-9956-
ffa450edef68
else {
keyid = *qstring;
ap_getword(r->pool, &qstring, '=');
- if (qstring != '\0') {
- direction = *qstring;
+ if (*qstring == D_DESCENDING) {
+ direction = D_DESCENDING;
}
else {
direction = D_ASCENDING;