From: hno <> Date: Sun, 18 Nov 2001 17:20:28 +0000 (+0000) Subject: Don't strip out anchors from URL's. Doing so violates the HTTP specification X-Git-Tag: SQUID_3_0_PRE1~1280 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ba9ebd0a2408db44f3e745b24a95114394b61ab5;p=thirdparty%2Fsquid.git Don't strip out anchors from URL's. Doing so violates the HTTP specification on URL transformation and semantical transparency. --- diff --git a/src/client_side.cc b/src/client_side.cc index 516ed7b789..6559ff7de4 100644 --- a/src/client_side.cc +++ b/src/client_side.cc @@ -1,6 +1,6 @@ /* - * $Id: client_side.cc,v 1.558 2001/11/15 00:52:42 hno Exp $ + * $Id: client_side.cc,v 1.559 2001/11/18 10:20:28 hno Exp $ * * DEBUG: section 33 Client-side Routines * AUTHOR: Duane Wessels @@ -2552,8 +2552,10 @@ parseHttpRequest(ConnStateData * conn, method_t * method_p, int *status, dlinkAdd(http, &http->active, &ClientActiveRequests); debug(33, 5) ("parseHttpRequest: Request Header is\n%s\n", (*prefix_p) + *req_line_sz_p); +#if THIS_VIOLATES_HTTP_SPECS_ON_URL_TRANSFORMATION if ((t = strchr(url, '#'))) /* remove HTML anchors */ *t = '\0'; +#endif /* handle internal objects */ if (internalCheck(url)) {