From: wessels <> Date: Thu, 25 Jun 1998 05:04:59 +0000 (+0000) Subject: strip arguments AFTER a question-mark, but leave the question-mark in X-Git-Tag: SQUID_3_0_PRE1~3140 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=29713d4a50301b116cd39535a8f98d36d5d17d21;p=thirdparty%2Fsquid.git strip arguments AFTER a question-mark, but leave the question-mark in place --- diff --git a/src/url.cc b/src/url.cc index 41fe1ba85e..1be5fc91c2 100644 --- a/src/url.cc +++ b/src/url.cc @@ -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;