]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
uptr->path (if it is ever NULL) will stop ap_unparse_uri_components()
authorMartin Kraemer <martin@apache.org>
Thu, 23 Aug 2001 06:38:25 +0000 (06:38 +0000)
committerMartin Kraemer <martin@apache.org>
Thu, 23 Aug 2001 06:38:25 +0000 (06:38 +0000)
from working as expected.
Submitted by: Justin Erenkrantz <jerenkrantz@ebuilt.com>

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

index d73413c63ad4e7fb4fce751cd2d5a1ad6fb068c3..19017a6b15bcf0a9ba7655d3dbe80a7a5d19d0bb 100644 (file)
@@ -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) {