Skip to content

Commit

Permalink
Don't strip out anchors from URL's. Doing so violates the HTTP specif…
Browse files Browse the repository at this point in the history
…ication

on URL transformation and semantical transparency.
  • Loading branch information
hno committed Nov 18, 2001
1 parent e8dbaa9 commit ba9ebd0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/client_side.cc
Original file line number Diff line number Diff line change
@@ -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)) {

0 comments on commit ba9ebd0

Please sign in to comment.