You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by ma...@hyperreal.org on 1998/05/30 03:54:31 UTC

cvs commit: apache-1.3/src/main util_uri.c

martin      98/05/29 18:54:30

  Modified:    src/main util_uri.c
  Log:
  When unparsing, it is not guaranteed that parsed_uri.path != NULL.
  Act defensively.
  
  Revision  Changes    Path
  1.20      +1 -1      apache-1.3/src/main/util_uri.c
  
  Index: util_uri.c
  ===================================================================
  RCS file: /export/home/cvs/apache-1.3/src/main/util_uri.c,v
  retrieving revision 1.19
  retrieving revision 1.20
  diff -u -u -r1.19 -r1.20
  --- util_uri.c	1998/04/11 12:00:32	1.19
  +++ util_uri.c	1998/05/30 01:54:30	1.20
  @@ -192,7 +192,7 @@
       /* Append path, query and fragment strings: */
       ret = ap_pstrcat (p,
   		   ret,
  -		   uptr->path,
  +		   uptr->path ? uptr->path : "",
   		   uptr->query ? "?" : "",
   		   uptr->query ? uptr->query : "",
   		   uptr->fragment ? "#" : NULL,