From: hno <> Date: Thu, 6 Nov 2003 19:27:02 +0000 (+0000) Subject: Bug #789: login with space confuses redirectors X-Git-Tag: SQUID_3_0_PRE4~1166 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5ce4b8cc492a47043276abd86dfcfb068c2a2bdb;p=thirdparty%2Fsquid.git Bug #789: login with space confuses redirectors this patch URL-encode username/ident in redirector protocol --- diff --git a/src/redirect.cc b/src/redirect.cc index c31cf4e788..ff7167b186 100644 --- a/src/redirect.cc +++ b/src/redirect.cc @@ -1,6 +1,6 @@ /* - * $Id: redirect.cc,v 1.102 2003/09/21 00:30:47 robertc Exp $ + * $Id: redirect.cc,v 1.103 2003/11/06 12:27:02 hno Exp $ * * DEBUG: section 61 Redirector * AUTHOR: Duane Wessels @@ -171,7 +171,7 @@ redirectStart(clientHttpRequest * http, RH * handler, void *data) r->orig_url, inet_ntoa(r->client_addr), fqdn, - r->client_ident, + r->client_ident[0] ? rfc1738_escape(r->client_ident) : dash_str, r->method_s); helperSubmit(redirectors, buf, redirectHandleReply, r);