From: Fabian Keil Date: Sun, 21 Oct 2012 12:55:29 +0000 (+0000) Subject: In cgi_show_request() only restore the client request up to client_iob->cur X-Git-Tag: v_3_0_20~225 X-Git-Url: http://www.privoxy.org/gitweb/?p=privoxy.git;a=commitdiff_plain;h=e493a146bdd7213e4b2aa16fbc4ecb988f27a59a In cgi_show_request() only restore the client request up to client_iob->cur Everything beyond that hasn't been touched by get_header() and thus doesn't need restoring. --- diff --git a/cgisimple.c b/cgisimple.c index fd488586..c1758b97 100644 --- a/cgisimple.c +++ b/cgisimple.c @@ -1,4 +1,4 @@ -const char cgisimple_rcs[] = "$Id: cgisimple.c,v 1.115 2012/03/09 17:55:49 fabiankeil Exp $"; +const char cgisimple_rcs[] = "$Id: cgisimple.c,v 1.116 2012/10/21 12:39:27 fabiankeil Exp $"; /********************************************************************* * * File : $Source: /cvsroot/ijbswa/current/cgisimple.c,v $ @@ -255,7 +255,7 @@ jb_err cgi_show_request(struct client_state *csp, /* * Repair the damage done to the IOB by get_header() */ - for (p = csp->client_iob->buf; p < csp->client_iob->eod; p++) + for (p = csp->client_iob->buf; p < csp->client_iob->cur; p++) { if (*p == '\0') *p = '\n'; }