From cbe360c8304130beedb56c540b4e8ba3993884b0 Mon Sep 17 00:00:00 2001 From: "William A. Rowe Jr" Date: Sat, 17 Nov 2001 03:27:09 +0000 Subject: [PATCH] Correct mod_autoindex's test of the query string's requested ordering. 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 git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/1.3.x@92017 13f79535-47bb-0310-9956-ffa450edef68 --- src/modules/standard/mod_autoindex.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/standard/mod_autoindex.c b/src/modules/standard/mod_autoindex.c index 0201d5cf543..607b5280f02 100644 --- a/src/modules/standard/mod_autoindex.c +++ b/src/modules/standard/mod_autoindex.c @@ -1673,8 +1673,8 @@ static int index_directory(request_rec *r, else { keyid = *qstring; ap_getword(r->pool, &qstring, '='); - if (qstring != '\0') { - direction = *qstring; + if (*qstring == D_DESCENDING) { + direction = D_DESCENDING; } else { direction = D_ASCENDING; -- 2.47.2