]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
strip arguments AFTER a question-mark, but leave the question-mark in
authorwessels <>
Thu, 25 Jun 1998 05:04:59 +0000 (05:04 +0000)
committerwessels <>
Thu, 25 Jun 1998 05:04:59 +0000 (05:04 +0000)
place

src/url.cc

index 41fe1ba85e629e2e9c748272c79fe0b075805128..1be5fc91c232cca0979412ff93cc55a71281e155 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: url.cc,v 1.96 1998/06/05 19:45:20 rousskov Exp $
+ * $Id: url.cc,v 1.97 1998/06/24 23:04:59 wessels Exp $
  *
  * DEBUG: section 23    URL Parsing
  * AUTHOR: Duane Wessels
@@ -351,8 +351,11 @@ urlCanonicalClean(const request_t * request)
                request->host,
                portbuf,
                strBuf(request->urlpath));
+           /*
+            * strip arguments AFTER a question-mark
+            */
            if ((t = strchr(buf, '?')))
-               *t = '\0';
+               *(++t) = '\0';
            break;
        }
     return buf;