From: Ruediger Pluem Date: Mon, 10 Apr 2006 22:07:02 +0000 (+0000) Subject: * Rollback r393037 as this was vetoed by wrowe. Details see X-Git-Tag: 2.3.0~2460 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=df91b29fd7da64498b9ad2b949267d272b2cf275;p=thirdparty%2Fapache%2Fhttpd.git * Rollback r393037 as this was vetoed by wrowe. Details see http://mail-archives.apache.org/mod_mbox/httpd-dev/200604.mbox/%3c443ABE65.1060603@rowe-clan.net%3e git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@393087 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/CHANGES b/CHANGES index 906a7bbb0c1..c360bbc4a4e 100644 --- a/CHANGES +++ b/CHANGES @@ -2,9 +2,6 @@ Changes with Apache 2.3.0 [Remove entries to the current 2.0 and 2.2 section below, when backported] - *) core: Set the path of a parsed uri in a request to "/" if the path is - NULL. PR 39259. [Davi Arnaut ] - *) htdbm: Warn the user when adding a plaintext password on a platform where it wouldn't work with the server (i.e., anywhere that has crypt()). [Jeff Trawick] diff --git a/server/protocol.c b/server/protocol.c index 6798a388071..9f792ecce24 100644 --- a/server/protocol.c +++ b/server/protocol.c @@ -518,11 +518,9 @@ AP_CORE_DECLARE(void) ap_parse_uri(request_rec *r, const char *uri) r->hostname = r->parsed_uri.hostname; } - if (r->parsed_uri.path == NULL) - r->parsed_uri.path = apr_pstrdup(r->pool, "/"); - r->args = r->parsed_uri.query; - r->uri = r->parsed_uri.path; + r->uri = r->parsed_uri.path ? r->parsed_uri.path + : apr_pstrdup(r->pool, "/"); #if defined(OS2) || defined(WIN32) /* Handle path translations for OS/2 and plug security hole.