From c8418f7f9912906d0090b25eb8c3a4b4793a6ee1 Mon Sep 17 00:00:00 2001 From: Martin Kraemer Date: Thu, 23 Aug 2001 06:38:25 +0000 Subject: [PATCH] uptr->path (if it is ever NULL) will stop ap_unparse_uri_components() from working as expected. Submitted by: Justin Erenkrantz git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/1.3.x@90543 13f79535-47bb-0310-9956-ffa450edef68 --- src/main/util_uri.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/util_uri.c b/src/main/util_uri.c index d73413c63ad..19017a6b15b 100644 --- a/src/main/util_uri.c +++ b/src/main/util_uri.c @@ -247,7 +247,8 @@ API_EXPORT(char *) ap_unparse_uri_components(pool *p, if (j && uptr->path && *uptr->path != '/') parts[j++] = "/"; - parts[j++] = uptr->path; + if (uptr->path != NULL) + parts[j++] = uptr->path; if (!(flags & UNP_OMITQUERY)) { if (uptr->query) { -- 2.47.2