cgi_error_no_template(): Encode the template name to prevent XSS
[privoxy.git] / ChangeLog
1 --------------------------------------------------------------------
2 ChangeLog for Privoxy
3 --------------------------------------------------------------------
4 *** Version 3.0.33 stable ***
5
6 - Bug fixes:
7   - handle_established_connection(): Skip the poll()/select() calls
8     if TLS data is pending on the server socket. The TLS library may
9     have already consumed all the data from the server response in
10     which case poll() and select() will not detect that data is
11     available to be read.
12     Fixes SF bug #926 reported by Wen Yue.
13   - continue_https_chat(): Update csp->server_connection.request_sent
14     after sending the request to make sure the latency is calculated
15     correctly. Previously https connections were not reused after
16     timeout seconds after the first request made on the connection.
17   - free_pattern_spec(): Don't try to free an invalid pointer
18     when unloading an action file with a TAG pattern while
19     Privoxy has been compiled without FEATURE_PCRE_HOST_PATTERNS.
20     Closes: SF patch request #147. Patch by Maxim Antonov.
21   - Establish the TLS connection with the client earlier and decide
22     how to route the request afterwards. This allows to change the
23     forwarding settings based on information from the https-inspected
24     request, for example the path.
25   - Adjust build_request_line() to create a CONNECT request line when
26     https-inspecting and forwarding to a HTTP proxy.
27     Fixes SF bug #925 reported by Wen Yue.
28   - load_config(): Add a space that was missing in a log message.
29
30 - General improvements:
31   - serve(): Close the client socket as well if the server socket
32     for an inspected connection has been closed. Privoxy currently
33     can't establish a new server connection when the client socket
34     is reused and would drop the connection in continue_https_chat()
35     anyway.
36   - Don't disable redirect checkers in redirect_url()
37     Disable them in handle_established_connection() instead.
38     Doing it in redirect_url() prevented the +redirect{} and
39     +fast-redirects{} actions from being logged with LOG_LEVEL_ACTIONS.
40   - handle_established_connection(): Slightly improve a comment
41   - handle_established_connection(): Fix a comment
42   - socks5_connect(): Fix indentation.
43   - handle_established_connection(): Improve an error message
44   - create_pattern_spec(): Fix ifdef indentation
45   - Fix comment typos
46   - Add a CGI handler for /wpad.dat that returns a
47     Proxy Auto-Configuration (PAC) file.
48     Among other things, it can be used to instruct clients
49     through DHCP to use Privoxy as proxy.
50     For example with the dnsmasq option:
51     dhcp-option=252,http://config.privoxy.org/wpad.dat
52     Initial patch by Richard Schneidt.
53   - listen_loop(): When shutting down gracefully, close listening ports
54     before waiting for the threads to exit.
55     Allows to start a second Privoxy with the same config file
56     while the first Privoxy is still running.
57   - Allow to edit the add-header action through the CGI editor by
58     generalizing the code that got added with the suppress-tag action.
59     Closes SF patch request #146. Patch by Maxim Antonov.
60   - process_encrypted_request(): Improve a log message
61     The function only processes request headers and there
62     may still be unread request body data left to process.
63   - read_http_request_body(): Fix two error messages that used an incorrect variable.
64   - chat(): Log the applied actions before deciding how to forward the request.
65   - parse_time_header(): Silence a coverity complaint when building without assertions.
66   - receive_encrypted_request_headers(): Improve a log message
67   - mbedTLS get_ciphersuites_from_string(): Use strlcpy() instead of strncpy().
68     Previously the terminating NUL wasn't copied which resulted
69     in a compiler warning. This didn't cause actual problems as
70     the target buffer was initialized by zalloc_or_die() so the
71     last byte of the target buffer was NUL already.
72     Actually copying the terminating NUL seems clearer, though.
73   - Remove compiler warnings. "log_error(LOG_LEVEL_FATAL, ..." doesn't return
74     but apparently the compiler doesn't know that.
75     Get rid of several "this statement may fall through [-Wimplicit-fallthrough=]" warnings.
76   - If the the response is chunk-encoded, ignore the Content-Length
77     header sent by the server.
78     Allows to load https://redmine.lighttpd.net/ with filtering enabled.
79   - Store the PEM certificate in a dynamically allocated buffer
80     when https-inspecting. Should prevent errors like:
81     2021-03-16 22:36:19.148 7f47bbfff700 Error: X509 PEM cert len 16694 is larger than buffer len 16383
82     As a bonus it should slightly reduce the memory usage as most
83     certificates are smaller than the previously used fixed buffer.
84     Reported by: Wen Yue
85   - Don't log the applied actions in process_encrypted_request()
86     Log them in continue_https_chat() instead to mirror chat().
87     Prevents the applied actions from getting logged twice
88     for the first request on an https-inspected connection.
89   - OpenSSL generate_host_certificate(): Use config.privoxy.org as Common Name
90     Org and Org Unit if the real host name is too long to get accepted by OpenSSL.
91     Clients should only care about the Subject Alternative Name
92     anyway and we can continue to use the real host name for it.
93     Reported by Miles Wen on privoxy-users@.
94   - OpenSSL generate_host_certificate(): Fix two error messsages.
95   - Improve description of handle_established_connection()
96   - OpenSSL ssl_store_cert(): Translate EVP_PKEY_EC to a string.
97   - OpenSSL ssl_store_cert(): Remove pointless variable initialization.
98   - OpenSSL ssl_store_cert(): Initialize pointer with NULL instead of 0.
99
100 - Action file improvements:
101   - Disable fast-redirects for .microsoftonline.com/.
102   - Disable fast-redirects for idp.springer.com/.
103   - Disable fast-redirects for .zeit.de/zustimmung
104   - Unblock adv-archiv.dfn-cert.de/
105   - Block requests to eu-tlp01.kameleoon.eu/
106   - Block requests to fpa-events.arstechnica.com/
107   - Unblock nlnet.nl/.
108   - Unblock adguard.com/.
109
110 - Privoxy-Log-Parser:
111   - Highlight 'Socket timeout 3 reached: http://127.0.0.1:20000/no-filter/chunked-content/36'
112   - Improve documentation for inactivity-detection mode
113   - Detect date changes when looking for inactivity
114   - Add a --passed-request-statistics-threshold option
115     That can be set to get statistics for requests that
116     were passed.
117   - Add a "inactivity detection" mode
118     Which can be useful for debugging purposes.
119   - Bump version to 0.9.4
120   - Only run print_intro() and print_outro() when syntax highlighting
121   - Rephrase a sentence in the documentation
122   - Highlight 'Client socket 7 is no longer usable. The server socket has been closed.'
123   - Clarify --statistics output
124     by explicitly mentioning that the status codes
125     sent by the server may differ from the ones in
126     "debug 512" messages.
127   - Fix typo in the --statistics output
128   - Remove an unused variable
129   - Highlight 'The peer notified us that the connection on socket 11 is going to be closed'
130
131 - Privoxy-Regression-Test:
132   - Remove duplicated word in a comment.
133
134 - regression-tests.action:
135   - Add fetch test for http://p.p/wpad.dat.
136   - Bump for-privoxy-version to 3.0.33 which introduced the wpad.dat support.
137   - Add more tests for the '/send-banner' code.
138   - Add test for OVE-20210203-0001.
139   - Add a test for CVE-2021-20217.
140
141 - uagen:
142   - Bump generated Firefox version to 91 (ESR)
143   - Bump version to 1.2.3
144   - Bump copyright
145
146 - Build system:
147   - configure: Bump SOURCE_DATE_EPOCH.
148   - GNUmakefile.in: Fix typo.
149   - configure: Add another warning in case --disable-pthread is used
150     while POSIX threads are available.
151     Various features don't even compile when not using threads.
152   - Add configure option to enable MemorySanitizer.
153   - Add configure option to enable UndefinedBehaviorSanitizer.
154   - Add configure option to enable AddressSanitizer.
155   - Bump copyright
156   - Add a configure option to disable pcre JIT compilation.
157     While JIT compilation makes filtering faster it can
158     cause false-positive valgrind complaints.
159     As reported by Gwyn Ciesla in SF bug 924 it also can
160     cause problems when the SELinux policy does not grant
161     Privoxy "execmem" privileges.
162   - configure: Remove obsolete RPM_BASE check
163
164 - Windows build system:
165   - Update the build script to use mbed tls version 2.6.11.
166   - Update build script to use the final 8.45 pcre library.
167   - Put all the '--enable-xxx' options in the configure call together.
168
169 - Documentation:
170   - contacting: Remove obsolete reference to announce.sgml.
171   - contacting: Request that the browser cache is cleared before
172     producing a log file for submission.
173   - Sponsor FAQ: Note that Privoxy users may follow sponsor links
174     without Referer header set.
175   - newfeatures: Clarify that https inspection also allows to
176     filter https responses.
177   - developer-manual: Mention that announce.txt should be updated
178     when doing a release.
179   - config: Explicitly mention that the CGI pages disclosing the
180     ca-password can be blocked and upgrade the disclosure paragraphs
181     to a warning.
182   - Put all the requested debug options in the config file.
183     Section 11.1 of the Privoxy user manual lists all the debug
184     options that should be enabled when reporting problems or requesting support.
185     Make it easier for users to do the right thing by having all those
186     options present in the config.
187   - Update TODO list item #184 to note that WolfSSL support will
188     (hopefully) appear after the 3.0.34 release
189   - Update max-client-connections's description.
190     On modern systems other than Windows Privoxy should
191     use poll() in which case the FD_SETSIZE value isn't
192     releveant.
193   - Add a warning that the socket-timeout does not apply
194     to operations done by TLS libraries
195   - Make documentation slightly less "offensive" for some people
196     by avoiding the word "hell".
197
198 *** Version 3.0.32 stable ***
199
200 - Security/Reliability:
201   - ssplit(): Remove an assertion that could be triggered with a
202     crafted CGI request.
203     Commit 2256d7b4d67. OVE-20210203-0001. CVE-2021-20272.
204     Reported by: Joshua Rogers (Opera)
205   - cgi_send_banner(): Overrule invalid image types. Prevents a
206     crash with a crafted CGI request if Privoxy is toggled off.
207     Commit e711c505c48. OVE-20210206-0001. CVE-2021-20273.
208     Reported by: Joshua Rogers (Opera)
209   - socks5_connect(): Don't try to send credentials when none are
210     configured. Fixes a crash due to a NULL-pointer dereference
211     when the socks server misbehaves.
212     Commit 85817cc55b9. OVE-20210207-0001. CVE-2021-20274.
213     Reported by: Joshua Rogers (Opera)
214   - chunked_body_is_complete(): Prevent an invalid read of size two.
215     Commit a912ba7bc9c. OVE-20210205-0001. CVE-2021-20275.
216     Reported by: Joshua Rogers (Opera)
217   - Obsolete pcre: Prevent invalid memory accesses with an invalid
218     pattern passed to pcre_compile(). Note that the obsolete pcre code
219     is scheduled to be removed before the 3.0.33 release. There has been
220     a warning since 2008 already.
221     Commit 28512e5b624. OVE-20210222-0001. CVE-2021-20276.
222     Reported by: Joshua Rogers (Opera)
223
224 - Bug fixes:
225   - Properly parse the client-tag-lifetime directive. Previously it was
226     not accepted as an obsolete hash value was being used.
227     Reported by: Joshua Rogers (Opera)
228   - decompress_iob(): Prevent reading of uninitialized data.
229     Reported by: Joshua Rogers (Opera).
230   - decompress_iob(): Don't advance cur past eod when looking
231     for the end of the file name and comment.
232   - decompress_iob(): Cast value to unsigned char before shifting.
233     Prevents a left-shift of a negative value which is undefined behaviour.
234     Reported by: Joshua Rogers (Opera)
235   - gif_deanimate(): Confirm that that we have enough data before doing
236     any work. Fixes a crash when fuzzing with an empty document.
237     Reported by: Joshua Rogers (Opera).
238   - buf_copy(): Fail if there's no data to write or nothing to do.
239     Prevents undefined behaviour "applying zero offset to null pointer".
240     Reported by: Joshua Rogers (Opera)
241   - log_error(): Treat LOG_LEVEL_FATAL as fatal even when --stfu is
242     being used while fuzzing.
243     Reported by: Joshua Rogers (Opera).
244   - Respect DESTDIR when considering whether or not to install
245     config files with ".new" extension.
246   - OpenSSL ssl_store_cert(): Fix two error messages.
247   - Fix a couple of format specifiers.
248   - Silence compiler warnings when compiling with NDEBUG.
249   - fuzz_server_header(): Fix compiler warning.
250   - fuzz_client_header(): Fix compiler warning.
251   - cgi_send_user_manual(): Also reject requests if the user-manual
252     directive specifies a https:// URL. Previously Privoxy would try and
253     fail to open a local file.
254
255 - General improvements:
256   - Log the TLS version and the the cipher when debug 2 is enabled.
257   - ssl_send_certificate_error(): Respect HEAD requests by not sending a body.
258   - ssl_send_certificate_error(): End the body with a single new line.
259   - serve(): Increase the chances that the host is logged when closing
260     a server socket.
261   - handle_established_connection(): Add parentheses to clarify an expression
262     Suggested by: David Binderman
263   - continue_https_chat(): Explicitly unset CSP_FLAG_CLIENT_CONNECTION_KEEP_ALIVE
264     if process_encrypted_request() fails. This makes it more obvious that the
265     connection will not be reused. Previously serve() relied on
266     CSP_FLAG_SERVER_CONTENT_LENGTH_SET and CSP_FLAG_CHUNKED being unset.
267     Inspired by a patch from Joshua Rogers (Opera).
268   - decompress_iob(): Add periods to a couple of log messages
269   - Terminate the body of the HTTP snipplets with a single new line
270     instead of "\r\n".
271   - configure: Add --with-assertions option and only enable assertions
272     when it is used
273   - windows build: Use --with-brotli and --with-mbedtls by default and
274     enable dynamic error checking.
275   - gif_deanimate(): Confirm we've got an image before trying to write it
276     Saves a pointless buf_copy() call.
277   - OpenSSL ssl_store_cert(): Remove a superfluous space before the serial number.
278
279 - Action file improvements:
280   - Disable fast-redirects for .golem.de/
281   - Unblock requests to adri*.
282   - Block requests for trc*.taboola.com/
283   - Disable fast-redirects for .linkedin.com/
284
285 - Filter file improvements:
286   - Make the second pcrs job of the img-reorder filter greedy again.
287     The ungreedy version broke the img tags on:
288     https://bulk.fefe.de/scalability/.
289
290 - Privoxy-Log-Parser:
291   - Highlight a few more messages.
292   - Clarify the --statistics output. The shown "Reused connections"
293     are server connections so name them appropriately.
294   - Bump version to 0.9.3.
295
296 - Privoxy-Regression-Test:
297   - Add the --check-bad-ssl option to the --help output.
298   - Bump version to 0.7.3.
299
300 - Documentation:
301   - Add pushing the created tag to the release steps in the developer manual.
302   - Clarify that 'debug 32768' should be used in addition to the other debug
303     directives when reporting problems.
304   - Add a 'Third-party licenses and copyrights' section to the user manual.
305
306 *** Version 3.0.31 stable ***
307
308 - Security/Reliability:
309   - Prevent an assertion from getting triggered by a crafted CGI request.
310     Commit 5bba5b89193fa. OVE-20210130-0001. CVE-2021-20217.
311     Reported by: Joshua Rogers (Opera)
312   - Fixed a memory leak when decompression fails "unexpectedly".
313     Commit f431d61740cc0. OVE-20210128-0001. CVE-2021-20216.
314
315 - Bug fixes:
316   - Fixed detection of insufficient data for decompression.
317     Previously Privoxy could try to decompress a partly
318     uninitialized buffer.
319
320 *** Version 3.0.30 stable ***
321
322 - Bug fixes:
323   - Check the actual URL for redirects when https inspecting requests.
324     Previously Privoxy would only check the path which resulted in
325     rewrite results being rejected as invalid URLs.
326     Reported by withoutname in #1736.
327   - Let the hide-referrer code tolerate Referer headers with https:// URLs.
328     Previously they would always be treated like a changed host.
329   - Use the https headers if the show-request handler is reached through
330     https://. Previously Privoxy would use the http headers which
331     may be empty on a reused connection.
332   - Make CGI_PREFIX protocol-relative when building with FEATURE_HTTPS_INSPECTION.
333     This unbreaks (at least) https://config.privoxy.org/client-tags whose
334     buttons would previously use a http:// URL resulting in browser warnings.
335   - Support using https-inspection and client-header-order at the same time.
336     Previously Privoxy would crash.
337     Reported by: Kai Raven
338   - Properly reject rewrites from http to https as they currently
339     aren't supported. Previously Privoxy would wait for the client
340     to establish an encrypted connection which obviously would not happen.
341   - When https inspection is enabled and Privoxy has been compiled with
342     FEATURE_GRACEFUL_TERMINATION (not recommended for production builds),
343     the TLS backend resources are free'd later on and only if no active
344     connections are left. Prevents crashes when exiting "gracefully" at the
345     wrong time.
346   - Let the uninstall target remove the config file even if DESTDIR
347     is set and properly announce the deletion of the configuration files.
348
349 - General improvements:
350   - Allow to rewrite the request destination for https-inspected
351     requests behind the client's back. The documentation already sort
352     of claimed that it was supported by not especially mentioning that
353     it didn't work for https-inspected requests.
354     Fixes SF bug #923 reported by withoutname.
355   - Add support for filtering client request bodies by using
356     CLIENT-BODY-FILTER filters which can be enabled with the
357     client-body-filter action.
358     Patch submitted by Maxim Antonov.
359     Sponsored by: Robert Klemme
360   - Add the new action suppress-tag{} which can be used to prevent
361     a tagger from adding a tag. Patch submitted by Maxim Antonov.
362     Sponsored by: Robert Klemme
363   - Gracefully handle existing website keys without matching certificates.
364     This can happen if Privoxy was previously running with an invalid
365     TLS configuration that didn't allow it to create a certificate.
366   - Recycle debug bit 4 for Tagging-related messages.
367   - Improve the message shown when the client-tags CGI page
368     is requested with no tags configured.
369   - Shorten the 'donate' and 'participate' links used by templates
370     using redirects. Currently the redirects lead to the FAQ entries
371     but in the future we may want to relocate the content and using
372     redirects makes this more convenient.
373   - Log an error when a PCRE-HOST-PATTERN is used with
374     FEATURE_PCRE_HOST_PATTERNS disabled. Don't treat this a
375     fatal error so the regression tests can be used with and
376     without FEATURE_PCRE_HOST_PATTERNS.
377   - The code compiles with older C compilers again.
378   - The chdir() return code is checked to fix a compiler warning.
379   - The packages feed has been removed from the source tarball.
380     It's usually out of date when the source tarball is generated
381     for the release.
382   - Fixed harmless compiler warnings from GCC9 with -D_FORTIFY_SOURCE=2.
383   - windows: Remove obsolete '$(DEST)/doc/images' target.
384   - windows: Install the images referenced in the user manual.
385   - Remove obsolete 'gnu_regex.@OBJEXT@' target.
386   - When installing from the GNUMAkefile, don't create an 'images'
387     directory which is no longer used. The images were relocated to
388     the user-manual directory years ago.
389   - Add new FEATURES to the show-status page and resort list.
390   - Remove unused variable in the OpenSSL-specific code.
391   - Update bug tracker URL in cgi_error_unknown().
392   - Saved a couple of memory allocations when sorting client headers.
393   - Improved a couple of error messages.
394   - Saved memory allocations when using OpenSSL and checking if a
395     key already exists.
396   - The configure script will bail out if OpenSSL and mbedTLS are
397     enabled at the same time.
398   - Log a message right before exiting gracefully.
399   - A couple of structures have been rearranged to require slightly
400     less memory.
401   - When https inspection is enabled and the certificate is invalid
402     the error message is now sent with status code 403 instead of 200.
403   - The Slackware rc script template has been renamed to
404     slackware/rc.privoxy.in to silence complaints when building
405     Debian packages.
406   - When building with MbedTLS support, mbedtls_md5_ret() is used
407     instead of mbedtls_md5() which is deprecated and causes a warning
408     on Debian GNU/Linux.
409
410 - Action file improvements:
411   - Block requests to eu-tlp03.kameleoon.com/.
412   - Unblock metrics.sr.ht/.
413   - Disable fast-redirects for .fsf.org/.
414   - Disable fast-redirects for .gravater.com/.
415   - Disable fast-redirects for .ksta.de/.
416   - Block requests to tag.crsspxl.com/.
417   - Block requests to analytics.slashdotmedia.com/.
418   - Block requests to ml314.com/.
419   - Block requests to .adroll.com/.
420   - Block requests to fastlane.rubiconproject.com/.
421   - Block requests to api.theadex.com/.
422   - Block requests to ih.adscale.de/.
423   - Block requests to .s400.meetrics.net/.
424   - Block requests for pp.lp4.io/.
425   - Block requests for trc-events.taboola.com/.
426
427 - Filter file improvements:
428   - A allow-autocompletion filter has been added which changes
429     autocomplete="off" to "on" on input fields to allow autocompletion.
430     Requested by Jamie Zawinski in #370.
431     Filter based on a submission by Aaron Linville.
432   - Added an imdb filter.
433   - Added a sourceforge filter that reduces the amount of ads
434     for proprietary software.
435   - Added a github filter that removes the annoying "Sign-Up"
436     banner and the Cookie disclaimer.
437   - Removed a duplicated pcrs command from the js-annoyances filter.
438   - The crude-parental filter now provides a short reason when blocking,
439     inserts a link to Privoxy's webinterface and adds a new line at
440     the end of the generated page.
441
442 - Privoxy-Log-Parser:
443   - Highlight a few more messages.
444   - Add a handler for tagging messages.
445   - Properly deal with 'Certificate error' crunches
446     Previously the error description was highlighted as 'host'.
447   - Log truncated LOG_LEVEL_CLF messages more gracefully
448     and note that the statistics will be imprecise.
449   - Fixed perldoc typo.
450   - Bump version to 0.9.2.
451
452 - Privoxy-Regression-Test:
453   - Use http://127.0.0.1:8118/ as default Privoxy address
454     unless http_proxy is set through the environment.
455   - Add a --privoxy-cgi-prefix option that specifies the prefix
456     to use when building URLs that are supposed to reach Privoxy's
457     CGI interface. If it's not set, http://p.p/ is used, which is
458     supposed to work with the default Privoxy configuration.
459     If Privoxy has been built with FEATURE_HTTPS_INSPECTION enabled,
460     and if https inspection is activated with the +https-inspection
461     action, this option can be used with "https://p.p/" provided the
462     system running Privoxy-Regression-Test has been configured to
463     trust the certificate used by Privoxy.
464     Note that there are currently two tests in the official
465     regression-tests.action file that are expected to fail
466     when using "https://p.p/" as privoxy-cgi-prefix.
467   - Skip the connection-established response in get_status_code()
468     when looking for the status code with a CGI prefix
469     that starts with https://. We care about the status code
470     sent by the impersonated web server.
471   - Use --proxy-header when using a CGI prefix with https://
472     and a "Host:" header.
473   - Allow '|' in tokens and values to allow tag patterns like
474     "TAG:^(application|text)/(x-)?javascript$".
475   - When get_cgi_page_or_else() fails, include the URL of the
476     requested page in the log message.
477   - Added a --check-bad-ssl option that can be used to verify that
478     Privoxy detects certificate problems when accessing the test
479     sites from badssl.com.
480   - Bumped version to 0.7.2
481
482 - uagen:
483   - Update example output.
484   - Recommend the use of the https-inspection action in the documentation.
485   - Upgrade a couple of URLs to https://.
486   - Add ElectroBSD to the list of operating systems.
487   - Bumped generated Firefox version to 78 (ESR).
488   - Bumped version to 1.2.2.
489
490  - User documentation:
491   - Remove reference to 'How to Report Bugs Effectively'.
492     It was only rendered as text without URL in the README anyway
493     and there's no indication that users read it ...
494   - Let the dok-readme target fix the location embedded into the
495     README file. This used to be done by CVS but since the git migration
496     it has to be done through other means.
497   - Remove 'experimental' warning for client-specific-tag-related directives.
498     They seem to work reliably and there is no obvious reason
499     why we would change the syntax in the near future.
500   - Describe how to check if Privoxy has been built with
501     FEATURE_HTTPS_INSPECTION.
502   - Add a link to the trusted-cas-file documentation
503     that explains how the user can create the file herself.
504   - Don't explicitly mention the license for the code coming from
505     'Anonymous Coders' and Junkbusters. It's obviously licensed under
506     the GNU GPL like the rest of Privoxy or we wouldn't be allowed to
507     distribute it.
508   - Update the +hide-user-agent example with uagen output.
509   - Slightly improve the wording of the ca-key-file documentation.
510   - Explicitly mention Windows 10 as supported so search engines and
511     users looking for it can find it.
512   - Import a bunch of contributors from the ChangeLog.
513   - Remove obsolete doc/gpl.html.
514   - Upgrade a couple of links to https://.
515   - Don't prefer the SourceForge patch tracker over the
516     privoxy-devel mailing list. While at it, link to the
517     SourceForge patch tracker.
518   - Mention http-inspection in the 'my browser warns me about
519     unauthenticated content' FAQ entry.
520   - Simplify the 'Is there is a license or fee?' FAQ entry.
521   - Add another +redirect{} example.
522   - Explicitly mention that interested sponsors should include
523     the link target in their first mail.
524   - Clarify that only Privoxy team members can object to new sponsors
525     and link to the list of current team members.
526   - Note that sponsor URLs may not contain keyword spam.
527   - Garbage collect doc/webserver/images which isn't referenced anymore.
528   - Update the method to reach the proxy settings in Firefox.
529   - Update proxy_setup.jpg description to refer to Firefox.
530   - Regenerate proxy_setup.jpg with a more recent Firefox (78.0).
531   - Regenerate files-in-use.jpg without obsolete standard.action
532     with modern colors and a slightly better quality.
533   - Update URL to the actionsfile tracker.
534   - Update a support request URL.
535   - Rephrase the 'Can Privoxy run as service' FAQ entry and
536     remove an obsolete paragraph.
537   - Let the 'Where can I get updated Actions Files?' entry link to
538     the gitweb version of default.action.master.
539   - Update a link to the default.action file.
540   - Update URLs for trackers and mailing lists.
541   - Replace CVS reference with git.
542   - Mention regression-tests.action in the config file.
543   - Explicitly mention in the config file that access to the
544     CA key should be limited to Privoxy.
545   - List more client-specific-tag examples for inspiration.
546   - Add additional headers to the client-header-order example.
547   - Note that actions aren't updated after rewrites.
548   - Explicitly mention that upgrading from http to https with
549     a client-header filter is not supported
550   - Note that protocol and host have to be added when rewriting
551     the destination host for https-inspected requests.
552   - Explicitly mention that the CA key is used to sign certificates.
553   - Put openssl command in 'command' tags.
554   - The man page has been moved from section 1 to man section 8.
555
556 - Developer manual:
557   - Flesh out the build instructions for Debian.
558   - Remove the packaging instructions for RPM-based systems.
559     They don't work and we don't release RPM packages anymore anyway.
560   - Remove the packaging instructions for Solaris.
561     They don't work and we don't release Solaris packages anymore anyway.
562   - Update the suggested subject for the announce mails.
563   - Update upload instructions.
564     ftp://upload.sourceforge.net is no longer functional.
565   - Remove a couple of package-dependent upload instructions
566     that don't actually work.
567   - Remove 'cd current' that no longer works.
568   - Add regression-tests.action to the list of files that should be installed.
569   - Stop claiming that there are text versions of the manuals.
570     We stopped building them in 2008 (9ed36a3c5e6f12).
571   - Note that the 'webserver' target creates the link needed for the user-manual.
572   - Suggest to use the master branch as reference when creating
573     the ChangeLog so the steps work when the current branch differs
574     from master which is likely as the developer manual
575     suggests to use a local branch for development.
576   - Add the -s flag to the suggested 'git tag' command.  We prefer signed tags.
577   - Mention that merges into 'master' should be avoided.
578   - Add git commands that should result in a merge-free history.
579   - Mention Privoxy-Regression-Test.
580   - Add a section id to reduce link churn.
581   - Recommend the dok-tidy target when building docs for the webserver.
582   - Add another plug for the privoxy-devel mailing list.
583   - Let the intro link the copyright section in the user manual instead
584     of giving an incomplete summary of the license status.
585   - Clarify that the webserver target uploads to the SourceForge webserver.
586   - Mark the documentation for the Mac OS X installers as out of date and
587     change the SCM name back to CVS.
588   - Fix the location of the installer modules for Mac OS X.
589     They are not actually available through git (yet).
590   - Don't speak of Privoxy version 3 in the past tense.
591   - Update the list of programs required for the release process.
592   - Update description of the webserver target which uses ssh, not scp.
593   - Remove obsolete reference to config.new.
594
595 - Tests:
596   - Add another hide-referrer{conditional-block} test.
597   - Add another hide-referrer{conditional-forge} test.
598   - Fix a hide-referrer{conditional-forge} test
599     that expected an acceptable header to be forged.
600   - Fix a hide-referrer{conditional-block} test
601     that expected an acceptable Referer to be removed.
602   - Explain why the "Set Header = Host: whatever.example.org" test is
603     expected to fail when using a CGI prefix that starts with "https://".
604   - Explain why a connection-sharing test is known to fail
605     when using "https://p.p/" as CGI prefix.
606   - Add a link to Privoxy-Regression-Test to regression-tests.action
607     in case it isn't packaged.
608   - Add regression tests for pcre host patterns.
609   - Fixed a regression test that is executed when
610     FEATURE_GRACEFUL_TERMINATION is enabled.
611
612 - Privoxy infrastructure:
613   - Import a Privoxy logo for the website.
614   - Update Tor onion service to HiddenServiceVersion 3.
615   - Display the "model" photos in a single row and remove placeholder images.
616   - Regenerate homepage with updated sponsor list.
617   - Use the '/sponsor' redirect for the link to the sponsor page.
618   - Git commit messages are sent to the Privoxy-commits mailing list.
619
620 *** Version 3.0.29 stable ***
621
622 - Security/Reliability:
623   - Fixed memory leaks when a response is buffered and the buffer
624     limit is reached or Privoxy is running out of memory.
625     Commits bbd53f1010b and 4490d451f9b. OVE-20201118-0001.
626     CVE-2020-35502.
627     Sponsored by: Robert Klemme
628   - Fixed a memory leak in the show-status CGI handler when
629     no action files are configured. Commit c62254a686.
630     OVE-20201118-0002. CVE-2021-20209.
631     Sponsored by: Robert Klemme
632   - Fixed a memory leak in the show-status CGI handler when
633     no filter files are configured. Commit 1b1370f7a8a.
634     OVE-20201118-0003. CVE-2021-20210.
635     Sponsored by: Robert Klemme
636   - Fixes a memory leak when client tags are active.
637     Commit 245e1cf32. OVE-20201118-0004. CVE-2021-20211.
638     Sponsored by: Robert Klemme
639   - Fixed a memory leak if multiple filters are executed
640     and the last one is skipped due to a pcre error.
641     Commit 5cfb7bc8fe. OVE-20201118-0005. CVE-2021-20212.
642   - Prevent an unlikely dereference of a NULL-pointer that
643     could result in a crash if accept-intercepted-requests
644     was enabled, Privoxy failed to get the request destination
645     from the Host header and a memory allocation failed.
646     Commit 7530132349. CID 267165. OVE-20201118-0006. CVE-2021-20213.
647   - Fixed memory leaks in the client-tags CGI handler when
648     client tags are configured and memory allocations fail.
649     Commit cf5640eb2a. CID 267168. OVE-20201118-0007. CVE-2021-20214.
650   - Fixed memory leaks in the show-status CGI handler when memory
651     allocations fail. Commit 064eac5fd0 and commit fdee85c0bf3.
652     CID 305233. OVE-20201118-0008. CVE-2021-20215.
653
654 - General improvements:
655   - Added experimental https inspection support which allows to filter
656     https traffic. To enable it, install MbedTLS and configure with
657     --with-mbedtls, or install OpenSSL or LibreSSL and configure
658     with --with-openssl.
659     Afterwards configure the directives in section 7 of the
660     config file and enable the +https-inspection action.
661     Initial MbedTLS-based code contributed by Vaclav Svec,
662     initial OpenSSL support contributed by Maxim Antonov.
663     With help from Nedzad Hrnjica and Ho+ Ho+ Ho+.
664     Integration and improvements sponsored by Robert Klemme.
665   - pcrs: Request JIT compilation if it's supported and
666     the filter isn't dynamic. This can speed up filtering.
667   - Added support for Brotli decompression.
668     Sponsored by: Robert Klemme
669   - Added FEATURE_EXTENDED_STATISTICS to gather statistics for
670     block reasons and filter executions. To enable it, configure
671     with --enable-extended-statistics and visit
672     http://config.privoxy.org/show-status.
673     Sponsored by: Robert Klemme
674   - Use the IP_FREEBIND socket option, if defined. This allows
675     Privoxy to bind to not-yet assigned IP addresses which is
676     useful in failover environments.
677     Patch by Sam Varshavchik.
678   - Allow to use extended host patterns and vanilla host patterns
679     at the same time by prefixing extended host patterns with
680     "PCRE-HOST-PATTERN:". To enable this, configure with
681     --enable-pcre-host-patterns.
682     Sponsored by: Robert Klemme
683   - Added "Cross-origin resource sharing" (CORS) support.
684     This allows to access Privoxy's CGI interface via JavaScript from
685     another domain (white-listed with the new cors-allowed-origin directive).
686     Based on a patch by Nedzad Hrnjica.
687     Sponsored by: Robert Klemme.
688   - Add SOCKS5 username/password support.
689     Based on a patch by Sam, improved by Ivan Romanov.
690     Closes Patch#141 and solves TODO#105.
691   - Bump the maximum number of action and filter files
692     to 100 each.
693     Sponsored by: Robert Klemme
694   - Fixed handling of filters with "split-large-forms 1"
695     when using the CGI editor.
696     Reported by withoutname in #921.
697   - Better detect a mismatch of connection details when
698     figuring out whether or not a connection can be reused.
699   - Don't send a "Connection failure" message instead of the
700     "DNS failure" message.
701     Sponsored by: Robert Klemme
702   - Let LOG_LEVEL_REQUEST log all requests. Previously unencrypted
703     requests were only logged with LOG_LEVEL_REQUEST when they weren't
704     crunched (in which case they were logged with LOG_LEVEL_CRUNCH).
705     This was documented behaviour, but logging all requests seems more useful.
706   - Fixed locking around localtime() and gmtime().
707   - Removed OS/2 support. We haven't provided OS/2 packages in years,
708     it complicated the code and it depended on a fallback snprintf()
709     implementation which is GPLv2 only.
710   - Remove the fallback snprintf() implementation
711     Now that OS/2 support is gone we no longer need it.
712   - Fixed a bunch of format specifiers log messages.
713   - Added a missing apostrophe in the 'More Privoxy' menu.
714   - Explicitly prevent use of FEATURE_CONNECTION_SHARING
715     without FEATURE_CONNECTION_KEEP_ALIVE. It makes no sense
716     and does not compile anyway.
717     Sponsored by: Robert Klemme
718   - Fix build without FEATURE_CONNECTION_KEEP_ALIVE.
719     Sponsored by: Robert Klemme
720   - Downgrade the 'Graceful termination requested' message
721     to LOG_LEVEL_INFO as it isn't an error.
722     Sponsored by: Robert Klemme
723   - decompress_iob(): Downgrade the no-content message to LOG_LEVEL_RE_FILTER
724     While at it, fix a typo in a comment.
725     Sponsored by: Robert Klemme
726   - Fixed a couple of cppcheck warnings.
727   - Rename LOG_LEVEL_GPC to LOG_LEVEL_REQUEST.
728     Only the shadow knows what "GPC" is supposed to stand for.
729   - Remove SourceForge references in copyright headers.
730   - Upgrade a bunch of links to the homepage to https://.
731   - Add 'no-brotli-accepted' filter which prevents the
732     use of Brotli compression.
733   - Changed license for pcrs to GPLv2+ after getting the
734     permission from Andreas. This allows to redistribute
735     Privoxy under the GPLv3 which is required when linking
736     to future mbedTLS versions which are expected to be
737     licensed under the Apache 2.0 license only.
738   - Updated a bunch of tests that have to expect status code 403
739     now after r1.168/070e904afa5.
740   - Lowercase the host name in the request line.
741   - Only set SOURCE_DATE_EPOCH if it's not already set so
742     distributions can overwrite it through the environment.
743
744 - Documentation changes:
745   - Explain that Privoxy has to be distributed under the
746     GPLv3 (or later) when linked with an MbedTLS version
747     that is licensed under the Apache 2.0 license.
748   - Import the GNU GPLv3 and include it the user manual.
749   - Clarify FEATURE_FORCE_LOAD's description. It allows to bypass
750     blocking not filtering and only does it if blocks aren't enforced.
751     Reported by: Robert Klemme
752   - FAQ: Remove Zwiebelfreunde e.V. from the list of fiduciary sponsors
753     As of 2021 they no longer handle donations for foreign organisations
754     due to lack of resources.
755   - FAQ: Remove an obsolete comment with a link to the long-gone PDF manual.
756   - FAQ: Add a link to the TODO list.
757   - FAQ: Change the sponsor amounts to USD slightly rounding the
758     converted amounts up to get simple numbers.
759     Receiving USD is apparently easier for SPI and SPI is
760     preferred by sponsors as they can send invoices.
761   - Advertise the client-tags CGI page in the user manual.
762   - Stop advertising the show-version CGI page which no longer exists.
763   - Add yet another reason why +prevent-compression may cause problems.
764   - Don't claim that contributors need ssh. It's only needed for committers.
765   - Replace obsolete CVS instructions with Git instructions.
766   - Remove an obsolete comment
767
768 - Config file changes:
769   - Change the suggested default-server-timeout to 5 to match the
770     suggested keep-alive-timeout. Otherwise using the defaults would
771     result in Privoxy reducing the default-server-timeout and logging
772     an error message.
773     Sponsored by: Robert Klemme
774   - Update the 'debug 1' description.
775   - Add a missing 'client-specific-tag' directive.
776   - Comment out trusted-cgi-referer pointing to example.org.
777
778 - Action file improvements:
779   - Block requests to /(.*/)?piwik\.php
780   - Block requests to .connectaserver.de/
781   - Block requests to pixel.inforsea.com/
782   - Block requests to t.vi-serve.com/
783   - Block requests to .ioam.de/
784   - Block requests to t.9gag.com/img.gif
785   - Block requests to .pixel.parsely.com/ as image
786   - Block requests to pixel.wp.com/
787   - Disable fast-redirects for .librarything.com/
788   - Disable fast-redirects for issue.freebsdfoundation.org/
789   - Disable fast-redirects for .twitter.com/.*origin=http
790   - Unblock belco24.de/
791   - Add fast-redirects exception for .wikipedia.org/
792   - Add fast-redirects exception for oss-fuzz.com/
793   - Disable fast-redirects for .consensu.org/delivery/pixel\.php
794     and block the requests as image instead
795   - Unblock .adbinstaller.com/
796     Reported by lvm in #942.
797   - Unblock .adbshell.com
798     Reported by lvm in #942.
799   - Unblock .tagesschau.de/
800   - Disable fast-redirects for collector.githubapp.com/
801     and block requests to it as image instead
802   - Unblock 'ada*.'
803   - Add fast-redirects{} exception for sourcepoint.vice.com/
804   - Unblock adaway.org/
805     Reported by DRS David Soft in AF#945.
806   - Change two block reasons that previously were the same.
807     Sponsored by: Robert Klemme
808   - Added a +delay-response{} test.
809   - Updated the location of the development version
810     of default.action.master.
811
812 - Privoxy-Log-Parser:
813   - Added a --keep-date option to keep the date in highlighted messages.
814   - Highlight new log messages.
815   - Make gather_loglevel_clf_stats() more tolerant. While at it,
816     count all CLF messages as requests, even if the request is invalid.
817   - Only show HTTP version distribution if at least one version has been detected.
818   - Only show crunch statistics if crunches were detected.
819   - Warn if the request counts differ.
820   - Generate statistics if the log only contains LOG_LEVEL_CLF messages
821     so it can be used with vanilla webserver logs.
822     Previously Privoxy-specific "Request:" messages were required.
823   - Align the client-HTTP-version distribution like other distributions
824   - Bump version to 0.9.1
825   - Include status code distribution in the stats.
826   - Let the statistics include the size of the content Privoxy
827     transferred excluding HTTP headers.
828   - Get with the program and expect all requests to be logged with LOG_LEVEL_REQUEST.
829     It's no longer necessary to count both LOG_LEVEL_REQUEST and
830     LOG_LEVEL_CRUNCH messages to get the total number of requests.
831   - Leverage the LOG_LEVEL_CLF message to gather statistics that where
832     previously taken from LOG_LEVEL_HEADER lines. This results in less
833     confusing results if https inspection is enabled in which case there
834     are two LOG_LEVEL_HEADER lines with request lines.
835     Sponsored by: Robert Klemme
836   - Properly highlight the filter results message. Previously a brace got lost.
837   - Prefer the number of CLF lines to get the total number of requests
838     as it works with older Privoxy versions as well.
839
840 - Privoxy-Regression-Test:
841   - Turn curl's globbing mode off so we can allow more characters in URLs.
842   - Allow '[' and ']' in URLs.
843   - Include the action file when complaining about missing Sticky Actions.
844   - Fix a sentence in the documentation.
845   - Bump version to 0.7.1
846
847 - url-pattern-translator:
848   - Detect a couple of pattern prefixes case-insensitively.
849     Sponsored by: Robert Klemme
850   - Skip CLIENT-TAG patterns.
851     Sponsored by: Robert Klemme
852   - Skip patterns that have already been converted.
853     It should now be safe to "convert" a file multiple times.
854     Sponsored by: Robert Klemme
855   - Add the new 'PCRE-HOST-PATTERN:' prefix.
856     Sponsored by: Robert Klemme
857
858 *** Version 3.0.28 stable ***
859
860 - Bug fixes for regressions in 3.0.27:
861   - Fixed misplaced parentheses.
862     Reported by David Binderman.
863   - Changed two regression tests to depend on config directive
864     enable-remote-toggle instead of FEATURE_TOGGLE.
865
866 *** Version 3.0.27 stable ***
867
868 - General improvements:
869   - Add a receive-buffer-size directive which can be used to
870     set the size of the previously statically allocated buffer
871     in handle_established_connection().
872     Increasing the buffer size increases Privoxy's memory usage but
873     can lower the number of context switches and thereby reduce the
874     CPU usage and potentially increase the throughput.
875     This is mostly relevant for fast network connections and
876     large downloads that don't require filtering.
877     Sponsored by: Robert Klemme
878   - Add a listen-backlog directive which specifies the backlog
879     value passed to listen().
880     Sponsored by: Robert Klemme
881   - Add an enable-accept-filter directive which allows to
882     toggle accept filter support at run time when compiled
883     with FEATURE_ACCEPT_FILTER support.
884     It makes testing more convenient and now that it's
885     optional we can emit an error message if enabling
886     the accept filter fails.
887     Sponsored by: Robert Klemme
888   - Add a delay-response{} action.
889     This is useful to tar pit JavaScript requests that
890     are endlessly retried in case of blocks. It can also
891     be used to simulate a slow Internet connection.
892     Sponsored by: Robert Klemme
893   - Add a 'trusted-cgi-referrer' directive.
894     It allows to configure another page or site that can be used
895     to reach sensitive CGI resources.
896     Sponsored by: Robert Klemme
897   - Add a --fuzz mode which exposes Privoxy internals to input
898     from files or stdout.
899     Mainly tested with American Fuzzy Lop. For details see:
900     https://www.fabiankeil.de/talks/fuzzing-on-freebsd/
901     This work was partially funded with donations and done
902     as part of the Privoxy month in 2015.
903   - Consistently use the U(ngreedy) flag in the 'img-reorder' filter.
904   - listen_loop(): Reuse a single thread attribute object
905     The object doesn't change and creating a new one for
906     every thread is a waste of (CPU) time.
907     Sponsored by: Robert Klemme
908   - Free csp resources in the thread that belongs to the csp instead
909     of the main thread which has enough on its plate already.
910     Sponsored by: Robert Klemme
911   - Improve 'socket timeout reached' message.
912     Log the timeout that was triggered and downgrade the
913     log level to LOG_LEVEL_CONNECT to reduce the log noise
914     with common debug settings.
915     The timeout isn't necessary the result of an error and
916     usually merely indicates that Privoxy's socket timeout
917     is lower than the relevant timeouts used by client and
918     server.
919     Sponsored by: Robert Klemme
920   - Explicitly taint the server socket in case of CONNECT requests.
921     This doesn't fix any known problems, but makes
922     some log messages less confusing.
923   - Let write_pid_file() terminate if the pid file can't be opened.
924     Logging the issue at info level is unlikely to help.
925   - log_error(): Reduce the mutex-protected area by not using a
926     heap-allocated buffer that is shared between all threads.
927     This increases performance and reduces the latency with
928     verbose debug settings and multiple concurrent connections.
929     Sponsored by: Robert Klemme
930   - Let zalloc() use calloc() if it's available.
931     In some situations using calloc() can be faster than
932     malloc() + memset() and it should never be slower.
933     In the real world the impact of this change is not
934     expected to be noticeable.
935     Sponsored by: Robert Klemme
936   - Never use select() when poll() is available.
937     On most platforms select() is limited by FD_SETSIZE while
938     poll() is not. This was a scaling issue for multi-user setups.
939     Using poll() has no downside other than the usual risk
940     that code modifications may introduce new bugs that have
941     yet to be found and fixed.
942     At least in theory this commit could also reduce the latency
943     when there are lots of connections and select() would use
944     "bit fields in arrays of integers" to store file descriptors.
945     Another side effect is that Privoxy no longer has to stop
946     monitoring the client sockets when pipelined requests are
947     waiting but can't be read yet.
948     This code keeps the select()-based code behind ifdefs for
949     now but hopefully it can be removed soonish to make the
950     code more readable.
951     Sponsored by: Robert Klemme
952   - Add a 'reproducible-tarball-dist' target.
953     It's currently separate from the "tarball-dist" target
954     because it requires a tar implementation with mtree spec
955     support.
956     It's far from being perfect and does not enforce a
957     reproducible mode, but it's better than nothing.
958   - Use arc4random() if it's available.
959     While Privoxy doesn't need high quality pseudo-random numbers
960     there's no reason not to use them when we can and this silences
961     a warning emitted by code checkers that can't tell whether or not
962     the quality matters.
963   - Show the FEATURE_EXTERNAL_FILTERS status on the status page.
964     Better late than never. Previously a couple of tests weren't
965     executed as Privoxy-Regression-Test couldn't detect that the
966     FEATURE_EXTERNAL_FILTERS dependency was satisfied.
967   - Ditch FEATURE_IMAGE_DETECT_MSIE.
968     It's an obsolete workaround we inherited from Junkbuster
969     and was already disabled by default.
970     Users that feel the urge to work around issues with
971     image requests coming from an Internet Explorer version
972     from more than 15 years ago can still do this using tags.
973   - Consistently use strdup_or_die() instead of strdup() in
974     cases where allocation failures aren't expected.
975     Using strdup_or_die() allows to remove a couple of explicit
976     error checks which slightly reduces the size of the binary.
977   - Insert a refresh tag into the /client-tags CGI page when
978     serving it while a client-specific tag is temporarily enabled.
979     This makes it less likely that the user ends up
980     looking at tag state that is out of date.
981   - Use absolute URLs in the client-tag forms.
982     It's more consistent with the rest of the CGI page
983     URLs and makes it more convenient to copy the forms
984     to external pages.
985   - cgi_error_disabled(): Use status code 403 and an appropriate response line
986   - Use a dedicated CGI handler to deal with tag-toggle requests
987     As a result the /client-tags page is now safe to reach without
988     trusted Referer header which makes bookmarking or linking to
989     it more convenient.
990     Finally, refreshing the /client-tags page to show the
991     current state can no longer unintentionally repeat the
992     previous toggle request.
993   - Don't add a "Connection" header for CONNECT requests.
994     Explicitly sending "Connection: close" is not necessary and
995     apparently it causes problems with some forwarding proxies
996     that will close the connection prematurely.
997     Reported by Marc Thomas.
998   - Fix compiler warnings.
999
1000 - Bug fixes:
1001   - rfc2553_connect_to(): Properly detect and log when poll()
1002     reached the time out. Previously this was logged as:
1003     Could not connect to [...]: No error: 0.
1004     which isn't very helpful.
1005     Sponsored by: Robert Klemme
1006   - add_tag_for_client(): Set time_to_live properly.
1007     Previously the time_to_live was always set for the first tag.
1008     Attempts to temporarily enable a tag would result in enabling
1009     it permanently unless no tag was enabled already.
1010   - Revert r1.165 which didn't perform as advertised.
1011     While the idea was to use "https:// when creating links
1012     for the user manual on the website", the actual effect
1013     was to use "https://" when Privoxy was supposed to serve
1014     the user manual itself.
1015     Reported by Yossi Zahn on Privoxy-devel@.
1016   - socks5_connect(): Fail in case of unsupported address types.
1017     Previously they would not be detected right away and
1018     Privoxy would fail later on with an error message that
1019     didn't make it obvious that the problem was socks-related.
1020     So far, no such problems have actually been reported.
1021   - socks5_connect(): Properly deal with socks replies that
1022     contain IPv6 addresses.
1023     Previously parts of the reply were left unread and
1024     later on treated as invalid HTTP response data.
1025     Fixes #904 reported by Danny Goossen who also provided
1026     the initial version of this patch.
1027
1028 - Action file improvements:
1029   - Unblock 'msdn.microsoft.com/'.
1030     It (presumably) isn't used to serve the kind of ads Privoxy should
1031     block by default but happens to serve lots of pages with URLs that
1032     are likely to result in false positives.
1033     Reported by bugreporter1694 in AF#939.
1034   - Disable gif deanimation for requests tagged with CSS-REQUEST.
1035     The action will ignore content that isn't considered text
1036     anyway and explicitly disabling it makes this more obvious
1037     if "action" debugging (debug 65536) is enabled while
1038     "gif deanimation" debugging (debug 256) isn't.
1039   - Explicitly disable HTML filters for requests with CSS-REQUEST tag.
1040     The filters are unlikely to break CSS files but executing
1041     them without (intentionally) getting any hits is a waste of
1042     cpu time and makes the log more noisy when running with
1043     "debug 64".
1044   - Unblock 'adventofcode.com/'.
1045     Reported by Clint Adams in Debian bug #848211.
1046     Fixes Roland's AF#937.
1047   - Unblock 'adlibris.com'.
1048     Reported by Wyrex in #935
1049   - Unblock .golang.org/
1050   - Add fast-redirects exception for '.youtube.com/.*origin=http'
1051
1052 - Privoxy-Log-Parser:
1053   - Don't gather host and resource statistics if they aren't requested.
1054     While the performance impact seems negligible this significantly
1055     reduces the memory usage if there are lots of requests.
1056   - Bump version as the behaviour (slightly) changed.
1057   - Count connection failures as well in statistics mode.
1058     Sponsored by: Robert Klemme
1059   - Count connection timeouts as well in statistics mode.
1060     Sponsored by: Robert Klemme
1061   - Fix an 'uninitialized value' warning when generating
1062     statistics for a log file without response headers.
1063     While privoxy-log-parser was supposed to detect this already,
1064     the check was flawed and the message the user didn't see was
1065     somewhat confusing anyway.
1066     Now the message is less confusing, more helpful and actually printed.
1067     Reported by: Robert Klemme
1068
1069 - Documentation improvements:
1070   - Refer to the git sources instead of CVS.
1071   - Use GNU/Linux when referring to the OS instead of the kernel.
1072   - Add FAQ entry for what to do if editing the config file is access denied.
1073   - Add brief HTTP/2 FAQ.
1074   - Add a small fuzzing section to the developer documentation.
1075   - Add a client-header-tagger{client-ip-address} example.
1076   - Stop suggesting that Privoxy is an anonymizing proxy.
1077     The term could lead to Privoxy users overestimating
1078     what it can do on its own (without Tor).
1079   - Make it more obvious that SPI accepts Paypal, too.
1080     Currently most donations are made through the Paypal account
1081     managed by Zwiebelfreunde e.V. and a more even distribution
1082     would be useful.
1083   - Suggest to log applying actions as well when reproducing problems.
1084   - Explicitly mention that Privoxy binaries are built by individuals
1085     on their own systems. Buyer beware!
1086   - Mention the release feed on the homepage.
1087   - Remove a mysterious comment with a GNU FDL link as it isn't
1088     useful and could confuse license scanners.
1089     In May 2002 it was briefly claimed that "this document" was covered
1090     by the GNU FDL. The commit message (r1.5) doesn't explain the motivation
1091     or whether all copyright holders were actually asked and agreed to the
1092     declared license change.
1093     It's thus hard to tell whether or not the license change was legit,
1094     but luckily two days later the "doc license" was "put" "back to GPL"
1095     anyway (r1.6).
1096     At the same time the offending comment with a link to the FDL
1097     (not the GPL) was added for no obvious reason.
1098     Now it's gone again.
1099
1100 - Regression tests:
1101   - Bump for-privoxy-version to 3.0.27 as we now rely on untrusted
1102     CGI request being rejected with status code 403 (instead of 200).
1103   - Update test for /send-stylesheet and add another one
1104
1105 - Templates:
1106   - Consistently use https:// when linking to the Privoxy website.
1107   - Remove SourceForge references in Copyright header.
1108   - Remove a couple of SourceForge references in a comment.
1109     While at it, fix the grammar.
1110   - Move the site-specific documentation block before the generic one.
1111     While most Privoxy installations don't have a site-specific
1112     documentation block, in cases were it exists it's likely to
1113     be more relevant than the generic one.
1114     Showing it first makes it less likely that users stop reading
1115     before they reach it, especially on pages that don't fit on
1116     the screen.
1117
1118 - Build system improvements:
1119   - Prefer openjade to jade. On some systems Jade produces
1120     HTML with unescaped ampersands in URLs.
1121   - Prefer OpenSP to SP to be consistent.
1122   - Have Docbook generated HTML files be straight ASCII.
1123     Dealing with a mixture of ISO-8859 and UTF-8 files is problematic.
1124   - Echo the filename to stderr for 'make dok-tidy'.
1125     Make it a bit easier to find errors in docbook generated HTML.
1126   - Warn when still using select().
1127   - Warn when compiling without calloc().
1128   - Make it more obvious that the --with-fdsetsize configure switch
1129     is pointless if poll() is available.
1130   - Remove support for AmigaOS.
1131   - Update windows build system to use supported software.
1132     The cygwin gcc -mno-cygwin option is no longer supported, so
1133     convert the windows build system to use the cygwin cross-compiler
1134     to build "native" code.
1135   - Add --enable-static-linking option for configure
1136     does the same thing as LDFLAGS=-static; ./configure
1137     but nicer than mixing evars and configure options.
1138
1139 *** Version 3.0.26 stable ***
1140
1141 - Bug fixes:
1142   - Fixed crashes with "listen-addr :8118" (SF Bug #902).
1143     The regression was introduced in 3.0.25 beta and reported
1144     by Marvin Renich in Debian bug #834941.
1145
1146 - General improvements:
1147   - Log when privoxy is toggled on or off via cgi interface.
1148   - Highlight the "Info: Now toggled " on/off log message
1149     in the Windows log viewer.
1150   - Highlight the loading actions/filter file log message
1151     in the Windows log viewer.
1152   - Mention client-specific tags on the toggle page as a
1153     potentionally more appropriate alternative.
1154
1155 - Documentation improvements:
1156   - Update download section on the homepage.
1157     The downloads are available from the website now.
1158   - Add sponsor FAQ.
1159   - Remove obsolete reference to mailing lists hosted at SourceForge.
1160   - Update the "Before the Release" section of the developer manual.
1161
1162 - Infrastructure improvements:
1163   - Add perl script to generate an RSS feed for the packages
1164     Submitted by "Unknown".
1165
1166 - Build system improvements:
1167   - strptime.h: fix a compiler warning about ambiguous else.
1168   - configure.in: Check for Docbook goo on the BSDs as well.
1169   - GNUMakefile.in: Let the dok-user target remove temporary files.
1170
1171 *** Version 3.0.25 beta ***
1172
1173 - Bug fixes:
1174   - Always use the current toggle state for new requests.
1175     Previously new requests on reused connections inherited
1176     the toggle state from the previous request even though
1177     the toggle state could have changed.
1178     Reported by Robert Klemme.
1179   - Fixed two buffer-overflows in the (deprecated) static
1180     pcre code. These bugs are not considered security issues
1181     as the input is trusted.
1182     Found with afl-fuzz and ASAN.
1183
1184 - General improvements:
1185   - Added support for client-specific tags which allow Privoxy
1186     admins to pre-define tags that are set for all requests from
1187     clients that previously opted in through the CGI interface.
1188     They are useful in multi-user setups where admins may
1189     want to allow users to disable certain actions and filters
1190     for themselves without affecting others.
1191     In single-user setups they are useful to allow more fine-grained
1192     toggling. For example to disable request blocking while still
1193     crunching cookies, or to disable experimental filters only.
1194     This is an experimental feature, the syntax and behaviour may
1195     change in future versions.
1196     Sponsored by Robert Klemme.
1197   - Dynamic filters and taggers now support a $listen-address variable
1198     which contains the address the request came in on.
1199     For external filters the variable is called $PRIVOXY_LISTEN_ADDRESS.
1200     Original patch contributed by pursievro.
1201   - Add client-header-tagger 'listen-address'.
1202   - Include the listen-address in the log message when logging new requests.
1203     Patch contributed by pursievro.
1204   - Turn invalid max-client-connections values into fatal errors.
1205   - The show-status page now shows whether or not dates before 1970
1206     and after 2038 are expected to be handled properly.
1207     This is mainly useful for Privoxy-Regression-Test but could
1208     also come handy when dealing with time-related support requests.
1209   - On Mac OS X the thread id in log messages are more likely to
1210     be unique now.
1211   - When complaining about missing filters, the filter type is logged
1212     as well.
1213   - A couple of harmless coverity warnings were silenced
1214     (CID #161202, CID #161203, CID #161211).
1215
1216 - Action file improvements:
1217   - Filtering is disabled for Range requests to let download resumption
1218     and Windows updates work with the default configuration.
1219   - Unblock ".ardmediathek.de/".
1220     Reported by ThTomate in #932.
1221
1222 - Documentation improvements:
1223   - Add FAQ entry for crashes caused by memory limits.
1224   - Remove obsolete FAQ entry about a bug in PHP 4.2.3.
1225   - Mention the new mailing lists were appropriate.
1226     As the archives have not been migrated, continue to
1227     mention the archives at SF in the contacting section
1228     for now.
1229   - Note that the templates should be adjusted if Privoxy is
1230     running as intercepting proxy without getting all requests.
1231   - A bunch of links were converted to https://.
1232   - Rephrase onion service paragraph to make it more obvious
1233     that Tor is involved and that the whole website (and not
1234     just the homepage) is available as onion service.
1235   - Streamline the "More information" section on the homepage further
1236     by additionally ditching the link to the 'See also' section
1237     of the user manual. The section contains mostly links that are
1238     directly reachable from the homepage already and the rest is
1239     not significant enough to get a link from the homepage.
1240   - Change the add-header{} example to set the DNT header
1241     and use a complete section to make copy and pasting
1242     more convenient.
1243     Add a comment to make it obvious that adding the
1244     header is not recommended for obvious reasons.
1245     Using the DNT header as example was suggested by
1246     Leo Wzukw.
1247   - Streamline the support-and-service template
1248     Instead of linking to the various support trackers
1249     (whose URLs hopefully change soon), link to the
1250     contact section of the user manual to increase the
1251     chances that users actually read it.
1252   - Add a FAQ entry for tainted sockets.
1253   - More sections in the documentation have stable URLs now.
1254   - FAQ: Explain why 'ping config.privoxy.org' is not expected
1255     to reach a local Privoxy installation.
1256   - Note that donations done through Zwiebelfreunde e.V. currently
1257     can't be checked automatically.
1258   - Updated section regarding starting Privoxy under OS X.
1259   - Use dedicated start instructions for FreeBSD and ElectroBSD.
1260   - Removed release instructions for AIX. They haven't been working
1261     for years and unsurprisingly nobody seems to care.
1262   - Removed obsolete reference to the solaris-dist target.
1263   - Updated the release instructions for FreeBSD.
1264   - Removed unfinished release instructions for Amiga OS and HP-UX 11.
1265   - Added a pointer to the Cygwin Time Machine for getting the last release of
1266     Cygwin version 1.5 to use for building Privoxy on Windows.
1267   - Various typos have been fixed.
1268
1269 - Infrastructure improvements:
1270   - The website is no longer hosted at SourceForge and
1271     can be reached through https now.
1272   - The mailing lists at SourceForge have been deprecated,
1273     you can subscribe to the new ones at: https://lists.privoxy.org/
1274   - Migrating the remaining services from SourceForge is
1275     work in progress (TODO list item #53).
1276
1277 - Build system improvements:
1278   - Add configure argument to optimistically redefine FD_SETSIZE
1279     with the intent to change the maximum number of client
1280     connections Privoxy can handle. Only works with some libcs.
1281     Sponsored by Robert Klemme.
1282   - Let the tarball-dist target skip files in ".git".
1283   - Let the tarball-dist target work in cwds other than current.
1284   - Make the 'clean' target faster when run from a git repository.
1285   - Include tools in the generic distribution.
1286   - Let the gen-dist target work in cwds other than current.
1287   - Sort find output that is used for distribution tarballs
1288     to get reproducible results.
1289   - Don't add '-src' to the name of the tar ball generated by the
1290     gen-dist target. The package isn't a source distribution but a
1291     binary package.
1292     While at it, use a variable for the name to reduce the chances
1293     that the various references get out of sync and fix the gen-upload
1294     target which was looking in the wrong directory.
1295   - Add regression-tests.action to the files that are distributed.
1296   - The gen-dist target which was broken since 2002 (r1.92) has been fixed.
1297   - Remove genclspec.sh which has been obsolete since 2009.
1298   - Remove obsolete reference to Redhat spec file.
1299   - Remove the obsolete announce target which has been commented out years ago.
1300   - Let rsync skip files if the checksums match.
1301
1302 - Privoxy-Regression-Test:
1303   - Add a "Default level offset" directive which can be used to
1304     change the default level by a given value.
1305     This directive affects all tests located after it until the end
1306     of the file or a another "Default level offset" directive is reached.
1307     The purpose of this directive is to make it more convenient to skip
1308     similar tests in a given file without having to remove or disable
1309     the tests completely.
1310   - Let test level 17 depend on FEATURE_64_BIT_TIME_T
1311     instead of FEATURE_PTHREAD which has no direct connection
1312     to the time_t size.
1313   - Fix indentation in perldoc examples.
1314   - Don't overlook directives in the first line of the action file.
1315   - Bump version to 0.7.
1316   - Fix detection of the Privoxy version now that https://
1317     is used for the website.
1318
1319 *** Version 3.0.24 stable ***
1320
1321 - Security fixes (denial of service):
1322   - Prevent invalid reads in case of corrupt chunk-encoded content.
1323     CVE-2016-1982. Bug discovered with afl-fuzz and AddressSanitizer.
1324   - Remove empty Host headers in client requests.
1325     Previously they would result in invalid reads. CVE-2016-1983.
1326     Bug discovered with afl-fuzz and AddressSanitizer.
1327
1328 - Bug fixes:
1329   - When using socks5t, send the request body optimistically as well.
1330     Previously the request body wasn't guaranteed to be sent at all
1331     and the error message incorrectly blamed the server.
1332     Fixes #1686 reported by Peter Müller and G4JC.
1333   - Fixed buffer scaling in execute_external_filter() that could lead
1334     to crashes. Submitted by Yang Xia in #892.
1335   - Fixed crashes when executing external filters on platforms like
1336     Mac OS X. Reported by Jonathan McKenzie on ijbswa-users@.
1337   - Properly parse ACL directives with ports when compiled with HAVE_RFC2553.
1338     Previously the port wasn't removed from the host and in case of
1339     'permit-access 127.0.0.1 example.org:80' Privoxy would try (and fail)
1340     to resolve "example.org:80" instead of example.org.
1341     Reported by Pak Chan on ijbswa-users@.
1342   - Check requests more carefully before serving them forcefully
1343     when blocks aren't enforced. Privoxy always adds the force token
1344     at the beginning of the path, but would previously accept it anywhere
1345     in the request line. This could result in requests being served that
1346     should be blocked. For example in case of pages that were loaded with
1347     force and contained JavaScript to create additionally requests that
1348     embed the origin URL (thus inheriting the force prefix).
1349     The bug is not considered a security issue and the fix does not make
1350     it harder for remote sites to intentionally circumvent blocks if
1351     Privoxy isn't configured to enforce them.
1352     Fixes #1695 reported by Korda.
1353   - Normalize the request line in intercepted requests to make rewriting
1354     the destination more convenient. Previously rewrites for intercepted
1355     requests were expected to fail unless $hostport was being used, but
1356     they failed "the wrong way" and would result in an out-of-memory
1357     message (vanilla host patterns) or a crash (extended host patterns).
1358     Reported by "Guybrush Threepwood" in #1694.
1359   - Enable socket lingering for the correct socket.
1360     Previously it was repeatedly enabled for the listen socket
1361     instead of for the accepted socket. The bug was found by
1362     code inspection and did not cause any (reported) issues.
1363   - Detect and reject parameters for parameter-less actions.
1364     Previously they were silently ignored.
1365   - Fixed invalid reads in internal and outdated pcre code.
1366     Found with afl-fuzz and AddressSanitizer.
1367   - Prevent invalid read when loading invalid action files.
1368     Found with afl-fuzz and AddressSanitizer.
1369   - Windows build: Use the correct function to close the event handle.
1370     It's unclear if this bug had a negative impact on Privoxy's behaviour.
1371     Reported by Jarry Xu in #891.
1372   - In case of invalid forward-socks5(t) directives, use the
1373     correct directive name in the error messages. Previously they
1374     referred to forward-socks4t failures.
1375     Reported by Joel Verhagen in #889.
1376
1377 - General improvements:
1378   - Set NO_DELAY flag for the accepting socket. This significantly reduces
1379     the latency if the operating system is not configured to set the flag
1380     by default. Reported by Johan Sintorn in #894.
1381   - Allow to build with mingw x86_64. Submitted by Rustam Abdullaev in #135.
1382   - Introduce the new forwarding type 'forward-webserver'.
1383     Currently it is only supported by the forward-override{} action and
1384     there's no config directive with the same name. The forwarding type
1385     is similar to 'forward', but the request line only contains the path
1386     instead of the complete URL.
1387   - The CGI editor no longer treats 'standard.action' special.
1388     Nowadays the official "standards" are part of default.action
1389     and there's no obvious reason to disallow editing them through
1390     the cgi editor anyway (if the user decided that the lack of
1391     authentication isn't an issue in her environment).
1392   - Improved error messages when rejecting intercepted requests
1393     with unknown destination.
1394   - A couple of log messages now include the number of active threads.
1395   - Removed non-standard Proxy-Agent headers in HTTP snipplets
1396     to make testing more convenient.
1397   - Include the error code for pcre errors Privoxy does not recognize.
1398   - Config directives with numerical arguments are checked more carefully.
1399   - Privoxy's malloc() wrapper has been changed to prevent zero-size
1400     allocations which should only occur as the result of bugs.
1401   - Various cosmetic changes.
1402
1403 - Action file improvements:
1404   - Unblock ".deutschlandradiokultur.de/".
1405     Reported by u302320 in #924.
1406   - Add two fast-redirect exceptions for "yandex.ru".
1407   - Disable filter{banners-by-size} for ".plasmaservice.de/".
1408   - Unblock "klikki.fi/adv/".
1409   - Block requests for "resources.infolinks.com/".
1410     Reported by "Black Rider" on ijbswa-users@.
1411   - Block a bunch of criteo domains.
1412     Reported by Black Rider.
1413   - Block "abs.proxistore.com/abe/".
1414     Reported by Black Rider.
1415   - Disable filter{banners-by-size} for ".black-mosquito.org/".
1416   - Disable fast-redirects for "disqus.com/".
1417
1418 - Documentation improvements:
1419   - FAQ: Explicitly point fingers at ASUS as an example of a
1420     company that has been reported to force malware based on
1421     Privoxy upon its customers.
1422   - Correctly document the action type for a bunch of "multi-value"
1423     actions that were incorrectly documented to be "parameterized".
1424     Reported by Gregory Seidman on ijbswa-users@.
1425   - Fixed the documented type of the forward-override{} action
1426     which is obviously 'parameterized'.
1427
1428 - Website improvements:
1429   - Users who don't trust binaries served by SourceForge
1430     can get them from a mirror. Migrating away from SourceForge
1431     is planned for 2016 (TODO list item #53).
1432   - The website is now available as onion service
1433     (http://jvauzb4sb3bwlsnc.onion/).
1434
1435 *** Version 3.0.23 stable ***
1436
1437 - Bug fixes:
1438   - Fixed a DoS issue in case of client requests with incorrect
1439     chunk-encoded body. When compiled with assertions enabled
1440     (the default) they could previously cause Privoxy to abort().
1441     Reported by Matthew Daley. CVE-2015-1380.
1442   - Fixed multiple segmentation faults and memory leaks in the
1443     pcrs code. This fix also increases the chances that an invalid
1444     pcrs command is rejected as such. Previously some invalid commands
1445     would be loaded without error. Note that Privoxy's pcrs sources
1446     (action and filter files) are considered trustworthy input and
1447     should not be writable by untrusted third-parties. CVE-2015-1381.
1448   - Fixed an 'invalid read' bug which could at least theoretically
1449     cause Privoxy to crash. So far, no crashes have been observed.
1450     CVE-2015-1382.
1451   - Compiles with --disable-force again. Reported by Kai Raven.
1452   - Client requests with body that can't be delivered no longer
1453     cause pipelined requests behind them to be rejected as invalid.
1454     Reported by Basil Hussain.
1455
1456 - General improvements:
1457   - If a pcrs command is rejected as invalid, Privoxy now logs
1458     the cause of the problem as text. Previously the pcrs error
1459     code was logged.
1460   - The tests are less likely to cause false positives.
1461
1462 - Action file improvements:
1463   - '.sify.com/' is no longer blocked. Apparently it is not actually
1464     a pure tracking site (anymore?). Reported by Andrew on ijbswa-users@.
1465   - Unblock banners on .amnesty.de/ which aren't ads.
1466
1467 - Documentation improvements:
1468   - The 'Would you like to donate?' section now also contains
1469     a "Paypal" address.
1470   - The list of supported operating systems has been updated.
1471   - The existence of the SF support and feature trackers has been
1472     deemphasized because they have been broken for months.
1473     Most of the time the mailing lists still work.
1474   - The claim that default.action updates are sometimes released
1475     on their own has been removed. It hasn't happened in years.
1476   - Explicitly mention that Tor's port may deviate from the default
1477     when using a bundle. Requested by Andrew on ijbswa-users@.
1478
1479 *** Version 3.0.22 stable ***
1480
1481 - Bug fixes:
1482   - Fixed a memory leak when rejecting client connections due to
1483     the socket limit being reached (CID 66382). This affected
1484     Privoxy 3.0.21 when compiled with IPv6 support (on most
1485     platforms this is the default). CVE-2015-1030.
1486   - Fixed an immediate-use-after-free bug (CID 66394) and two
1487     additional unconfirmed use-after-free complaints made by
1488     Coverity scan (CID 66391, CID 66376). CVE-2015-1031.
1489   - Actually show the FORCE_PREFIX value on the show-status page.
1490   - Properly deal with Keep-Alive headers with timeout= parameters
1491     If the timeout still can't be parsed, use the configured
1492     timeout instead of preventing the client from keeping the
1493     connection alive. Fixes #3615312/#870 reported by Bernard Guillot.
1494   - Not using any filter files no longer results in warning messages
1495     unless an action file is referencing header taggers or filters.
1496     Reported by Stefan Kurtz in #3614835.
1497   - Fixed a bug that prevented Privoxy from reusing some reusable
1498     connections. Two bit masks with different purpose unintentionally
1499     shared the same bit.
1500   - A couple of additional bugs were discovered by Coverity Scan.
1501     The fixes that are not expected to affect users are not explicitly
1502     mentioned here, for details please have a look at the CVS logs.
1503
1504 - General improvements:
1505   - Introduced negative tag patterns NO-REQUEST-TAG and NO-RESPONSE-TAG.
1506     They apply if no matching tag is found after parsing client or
1507     server headers.
1508   - Add support for external filters which allow to process the
1509     response body with a script or program written in any language
1510     the platform supports. External filters are enabled with
1511     +external-filter{} after they have been defined in one of the
1512     filter files with a header line starting with "EXTERNAL-FILTER:".
1513     External filter support is experimental, not compiled by default
1514     and known not to work on all platforms.
1515   - Add support for the 'PATCH' method as defined in RFC5789.
1516   - Reject requests with unsupported Expect header values.
1517     Fixes a couple of Co-Advisor tests.
1518   - Normalize the HTTP-version in forwarded requests and responses.
1519     This is an explicit RFC 2616 MUST and RFC 7230 mandates that
1520     intermediaries send their own HTTP-version in forwarded
1521     messages.
1522   - Server 'Keep-Alive' headers are no longer forwarded. From a user's
1523     point of view it doesn't really matter, but RFC 2616 (obsolete)
1524     mandates that the header is removed and this fixes a Co-Advisor
1525     complaint.
1526   - Change declared template file encoding to UTF-8. The templates
1527     already used a subset of UTF-8 anyway and changing the declaration
1528     allows to properly display UTF-8 characters used in the action files.
1529     This change may require existing action files with ISO-8859-1
1530     characters that aren't valid UTF-8 to be converted to UTF-8.
1531     Requested by Sam Chen in #582.
1532   - Do not pass rejected keep-alive timeouts to the server. It might
1533     not have caused any problems (we know of), but doing the right
1534     thing shouldn't hurt either.
1535   - Let log_error() use its own buffer size #define to make changing
1536     the log buffer size slightly less inconvenient.
1537   - Turned single-threaded into a "proper" toggle directive with arguments.
1538   - CGI templates no longer enforce new windows for some links.
1539   - Remove an undocumented workaround ('HOST' header removal) for
1540     an Apple iTunes bug that according to #729900 got fixed in 2003.
1541
1542 - Action file improvements:
1543   - The pattern 'promotions.' is no longer being blocked.
1544     Reported by rakista in #3608540.
1545   - Disable fast-redirects for .microsofttranslator.com/.
1546   - Disable filter{banners-by-size} for .dgb-tagungszentren.de/.
1547   - Add adn.speedtest.net as a site-specific unblocker.
1548     Support request #3612908.
1549   - Disable filter{banners-by-size} for creativecommons.org/.
1550   - Block requests to data.gosquared.com/. Reported by cbug in #3613653.
1551   - Unblock .conrad./newsletter/. Reported by David Bo in #3614238.
1552   - Unblock .bundestag.de/.
1553   - Unblock .rote-hilfe.de/.
1554   - Disable fast-redirects for .facebook.com/plugins/like.php.
1555   - Unblock Stackexchange popup URLs that aren't used to serve ads.
1556     Reported by David Wagner in #3615179.
1557   - Disable fast-redirects for creativecommons.org/.
1558   - Unblock .stopwatchingus.info/.
1559   - Block requests for .adcash.com/script/.
1560     Reported by Tyrexionibus in #3615289.
1561   - Disable HTML filters if the response was tagged as JavaScript.
1562     Filtering JavaScript code with filters intended to deal with HTML
1563     is usually a waste of time and, more importantly, may break stuff.
1564   - Use a custom redirect{} for .washingtonpost.com/wp-apps/imrs\.php\?src=
1565     Previously enabling the 'Advanced' settings (or manually enabling
1566     +fast-redirects{}) prevented some images from being loaded properly.
1567   - Unblock "adina*." Fixes #919 reported by Morton A. Goldberg.
1568   - Block '/.*DigiAd'.
1569   - Unblock 'adele*.'. Reported by Adele Lime in #1663.
1570   - Disable banners-by-size for kggp.de/.
1571
1572 - Filter file improvements & bug fixes:
1573   - Decrease the chances that js-annoyances creates invalid JavaScript.
1574     Submitted by John McGowan on ijbswa-users@.
1575   - Let the msn filter hide 'related' ads again.
1576   - Remove a stray '1' in the 'html-annoyances' filter.
1577   - Prevent img-reorder from messing up img tags with empty src
1578     attributes. Fixes #880 reported by Duncan.
1579
1580 - Documentation improvements:
1581   - Updated the 'Would you like to donate?' section.
1582   - Note that invalid forward-override{} parameter syntax isn't
1583     detected until the parameter is used.
1584   - Add another +redirect{} example: a shortcut for illumos bugs.
1585   - Make it more obvious that many operating systems support log
1586     rotation out of the box.
1587   - Fixed dead links. Reported by Mark Nelson in #3614557.
1588   - Rephrased the 'Why is the configuration so complicated?' answer
1589     to be slightly less condescending. Anonymously suggested in #3615122.
1590   - Be more explicit about accept-intercepted-requests's lack of MITM support.
1591   - Make 'demoronizer' FAQ entries more generic.
1592   - Add an example hostname to the --pre-chroot-nslookup description.
1593   - Add an example for a host pattern that matches an IP address.
1594   - Rename the 'domain pattern' to 'host pattern' as it may
1595     contain IP addresses as well.
1596   - Recommend forward-socks5t when using Tor. It seems to work fine and
1597     modifying the Tor configuration to profit from it hasn't been necessary
1598     for a while now.
1599   - Add another redirect{} example to stress that redirect loops can
1600     and should be avoided.
1601   - The usual spelling and grammar fixes. Parts of them were
1602     reported by Reuben Thomas in #3615276.
1603   - Mention the PCRS option letters T and D in the filter section.
1604   - Clarify that handle-as-empty-doc-returns-ok is still useful
1605     and will not be removed without replacement.
1606   - Note that security issues shouldn't be reported using the bug tracker.
1607   - Clarify what Privoxy does if both +block{} and +redirect{} apply.
1608   - Removed the obsolete bookmarklets section.
1609
1610 - Build system improvements:
1611   - Let --with-group properly deal with secondary groups.
1612     Patch submitted by Anatoly Arzhnikov in #3615187.
1613   - Fix web-actions target.
1614   - Add a web-faq target that only updates the FAQ on the webserver.
1615   - Remove already-commented-out non-portable DOSFILTER alternatives.
1616   - Remove the obsolete targets dok-put and dok-get.
1617   - Add a sf-shell target.
1618
1619 *** Version 3.0.21 stable ***
1620
1621 - Bug fixes:
1622   - On POSIX-like platforms, network sockets with file descriptor
1623     values above FD_SETSIZE are properly rejected. Previously they
1624     could cause memory corruption in configurations that allowed
1625     the limit to be reached.
1626   - Proxy authentication headers are removed unless the new directive
1627     enable-proxy-authentication-forwarding is used. Forwarding the
1628     headers potentially allows malicious sites to trick the user
1629     into providing them with login information.
1630     Reported by Chris John Riley.
1631   - Compiles on OS/2 again now that unistd.h is only included
1632     on platforms that have it.
1633
1634 - General improvements:
1635   - The show-status page shows the FEATURE_STRPTIME_SANITY_CHECKS status.
1636   - A couple of assert()s that could theoretically dereference
1637     NULL pointers in debug builds have been relocated.
1638   - Added an LSB info block to the generic start script.
1639     Based on a patch from Natxo Asenjo.
1640   - The max-client-connections default has been changed to 128
1641     which should be more than enough for most setups.
1642
1643 - Action file improvements:
1644   - Block rover.ebay./ar.*\&adtype= instead of "/.*\&adtype=" which
1645     caused too man false positives.
1646     Reported by u302320 in #360284, additional feedback from Adam Piggott.
1647   - Unblock '.advrider.com/' and '/.*ADVrider'.
1648     Anonymously reported in #3603636.
1649   - Stop blocking '/js/slider\.js'.
1650     Reported by Adam Piggott in #3606635 and _lvm in #2791160.
1651
1652 - Filter file improvements:
1653   - Added an iframes filter.
1654
1655 - Documentation improvements:
1656   - The whole GPLv2 text is included in the user manual now,
1657     so Privoxy can serve it itself and the user can read it
1658     without having to wade through GPLv3 ads first.
1659   - Properly numbered and underlined a couple of section titles
1660     in the config that where previously overlooked due to a flaw
1661     in the conversion script. Reported by Ralf Jungblut.
1662   - Improved the support instruction to hopefully make it harder to
1663     unintentionally provide insufficient information when requesting
1664     support. Previously it wasn't obvious that the information we need
1665     in bug reports is usually also required in support requests.
1666   - Removed documentation about packages that haven't been provided
1667     in years.
1668
1669 - Privoxy-Regression-Test:
1670   - Only log the test number when not running in verbose mode
1671     The position of the test is rarely relevant and it previously
1672     wasn't exactly obvious which one of the numbers was useful to
1673     repeat the test with --test-number.
1674
1675 - GNUmakefile improvements:
1676   - Factor generate-config-file out of config-file to make testing
1677     more convenient.
1678   - The clean target now also takes care of patch leftovers.
1679
1680 *** Version 3.0.20 beta ***
1681
1682 - Bug fixes:
1683   - Client sockets are now properly shutdown and drained before being
1684     closed. This fixes page truncation issues with clients that aggressively
1685     pipeline data on platforms that otherwise discard already written data.
1686     The issue mainly affected Opera users and was initially reported
1687     by Kevin in #3464439, szotsaki provided additional information to track
1688     down the cause.
1689   - Fix latency calculation for shared connections (disabled by default).
1690     It was broken since their introduction in 2009. The calculated latency
1691     for most connections would be 0 in which case the timeout detection
1692     failed to account for the real latency.
1693   - Reject URLs with invalid port. Previously they were parsed incorrectly and
1694     characters between the port number and the first slash were silently
1695     dropped as shown by curl test 187.
1696   - The default-server-timeout and socket-timeout directives accept 0 as
1697     valid value.
1698   - Fix a race condition on Windows that could cause Privoxy to become
1699     unresponsive after toggling it on or off through the taskbar icon.
1700     Reported by Tim H. in #3525694.
1701   - Fix the compilation on Windows when configured without IPv6 support.
1702   - Fix an assertion that could cause debug builds to abort() in case of
1703     socks5 connection failures with "debug 2" enabled.
1704   - Fix an assertion that could cause debug builds to abort() if a filter
1705     contained nul bytes in the replacement text.
1706
1707 - General improvements:
1708   - Significantly improved keep-alive support for both client and server
1709     connections.
1710   - New debug log level 65536 which logs all actions that were applied to
1711     the request.
1712   - New directive client-header-order to forward client headers in a
1713     different order than the one in which they arrived.
1714   - New directive tolerate-pipelining to allow client-side pipelining.
1715     If enabled (3.0.20 beta enables it by default), Privoxy will keep
1716     pipelined client requests around to deal with them once the current
1717     request has been served.
1718   - New --config-test option to let Privoxy exit after checking whether or not
1719     the configuration seems valid. The limitations noted in TODO #22 and #23
1720     still apply. Based on a patch by Ramkumar Chinchani.
1721   - New limit-cookie-lifetime{} action to let cookies expire before the end
1722     of the session. Suggested by Rick Sykes in #1049575.
1723   - Increase the hard-coded maximum number of actions and filter files from
1724     10 to 30 (each). It doesn't significantly affect Privoxy's memory usage
1725     and recompiling wasn't an option for all Privoxy users that reached the
1726     limit.
1727   - Add support for chunk-encoded client request bodies. Previously
1728     chunk-encoded request bodies weren't guaranteed to be forwarded correctly,
1729     so this can also be considered a bug fix although chunk-encoded request
1730     bodies aren't commonly used in the real world.
1731   - Add support for Tor's optimistic-data SOCKS extension, which can reduce the
1732     latency for requests on newly created connections. Currently only the
1733     headers are sent optimistically and only if the client request has already
1734     been read completely which rules out requests with large bodies.
1735   - After preventing the client from pipelining, don't signal keep-alive
1736     intentions. When looking at the response headers alone, it previously
1737     wasn't obvious from the client's perspective that no additional responses
1738     should be expected.
1739   - Stop considering client sockets tainted after receiving a request with body.
1740     It hasn't been necessary for a while now and unnecessarily causes test
1741     failures when using curl's test suite.
1742   - Allow HTTP/1.0 clients to signal interest in keep-alive through the
1743     Proxy-Connection header. While such client are rare in the real world, it
1744     doesn't hurt and couple of curl tests rely on it.
1745   - Only remove duplicated Content-Type headers when filters are enabled.
1746     If they are not it doesn't cause ill effects and the user might not want it.
1747     Downgrade the removal message to LOG_LEVEL_HEADER to clarify that it's not
1748     an error in Privoxy and is unlikely to cause any problems in general.
1749     Anonymously reported in #3599335.
1750   - Set the socket option SO_LINGER for the client socket.
1751   - Move several variable declarations to the beginning of their code block.
1752     It's required when compiling with gcc 2.95 which is still used on some
1753     platforms. Initial patch submitted by Simon South in #3564815.
1754   - Optionally try to sanity-check strptime() results before trusting them.
1755     Broken strptime() implementations have caused problems in the past and
1756     the most recent offender seems to be FreeBSD's libc (standards/173421).
1757   - When filtering is enabled, let Range headers pass if the range starts at
1758     the beginning. This should work around (or at least reduce) the video
1759     playback issues with various Apple clients as reported by Duc in #3426305.
1760   - Do not confuse a client hanging up with a connection time out. If a client
1761     closes its side of the connection without sending a request line, do not
1762     send the CLIENT_CONNECTION_TIMEOUT_RESPONSE, but report the condition
1763     properly.
1764   - Allow closing curly braces as part of action values as long as they are
1765     escaped.
1766   - On Windows, the logfile is now written before showing the GUI error
1767     message which blocks until the user acknowledges it.
1768     Reported by Adriaan in #3593603.
1769   - Remove an unreasonable parameter limit in the CGI interface. The new
1770     parameter limit depends on the memory available and is currently unlikely
1771     to be reachable, due to other limits in both Privoxy and common clients.
1772     Reported by Andrew on ijbswa-users@.
1773   - Decrease the chances of parse failures after requests with unsupported
1774     methods were sent to the CGI interface.
1775
1776 - Action file improvements:
1777   - Remove the comment that indicated that updated default.action versions
1778     are released on their own.
1779   - Block 'optimize.indieclick.com/' and 'optimized-by.rubiconproject.com/'
1780   - Unblock 'adjamblog.wordpress.com/' and 'adjamblog.files.wordpress.com/'.
1781     Reported by Ryan Farmer in #3496116.
1782   - Unblock '/.*Bugtracker'. Reported by pwhk in #3522341.
1783   - Add test URLs for '.freebsd.org' and '.watson.org'.
1784   - Unblock '.urbandictionary.com/popular'.
1785   - Block '.adnxs.com/'.
1786   - Block 'farm.plista.com/widgetdata.php'.
1787   - Block 'rotation.linuxnewmedia.com/'.
1788   - Block 'reklamy.sfd.pl/'. Reported by kacperdominik in #3399948.
1789   - Block 'g.adspeed.net/'.
1790   - Unblock 'websupport.wdc.com/'. Reported by Adam Piggot in #3577851.
1791   - Block '/openx/www/delivery/'.
1792   - Disable fast-redirects for '.googleapis.com/'.
1793   - Block 'imp.double.net/'. Reported by David Bo in #3070411.
1794   - Block 'gm-link.com/' which is used for email tracking.
1795     Reported by David Bo in #1812733.
1796   - Verify that requests to "bwp." are blocked. URL taken from #1736879
1797     submitted by Francois Marier.
1798   - Block '/.*bannerid='. Reported by Adam Piggott in #2975779.
1799   - Block 'cltomedia.info/delivery/' and '.adexprt.com/'.
1800     Anonymously reported in #2965254.
1801   - Block 'de17a.com/'. Reported by David Bo in #3061472.
1802   - Block 'oskar.tradera.com/'. Reported by David Bo in #3060596.
1803   - Block '/scripts/webtrends\.js'. Reported by johnd16 in #3002729.
1804   - Block requests for 'pool.*.adhese.com/'. Reported by johnd16 in #3002716.
1805   - Update path pattern for Coremetrics and add tests.
1806     Pattern and URLs submitted by Adam Piggott #3168443.
1807   - Enable +fast-redirects{check-decoded-url} for 'tr.anp.se/'.
1808     Reported by David Bo in #3268832.
1809   - Unblock '.conrad.se/newsletter/banners/'. Reported by David Bo in #3413824.
1810   - Block '.tynt.com/'. Reported by Dan Stahlke in #3421767.
1811   - Unblock '.bbci.co.uk/radio/'. Reported by Adam Piggott in #3569603.
1812   - Block requests to 'service.maxymiser.net/'.
1813     Reported by johnd16 in #3118401 (with a previous URL).
1814   - Disable fast-redirects for Google's "let's pretend your computer is
1815     infected" page.
1816   - Unblock '/.*download' to resolve actionsfile feedback #3498129.
1817     Submitted by Steven Kolins (soundcloud.com not working).
1818   - Unblock '.wlxrs.com/' which is required by hotmail.com.
1819     Fixes #3413827 submitted by David Bo.
1820   - Add two unblock patterns for popup radio and TV players.
1821     Submitted by Adam Piggott in #3596089.
1822
1823 - Filter file improvements & bug fixes:
1824   - Add a referer tagger.
1825   - Reduce the likelihood that the google filter messes up HTML-generating
1826     JavaScript. Reported by Zeno Kugy in #3520260.
1827
1828 - Documentation improvements:
1829   - Revised all OS X sections due to new packaging module (OSXPackageBuilder).
1830   - Update the list of supported operating systems to clarify that all Windows
1831     versions after 95 are expected to work and note that the platform-specific
1832     code for AmigaOS and QNX currently isn't maintained.
1833   - Update 'Signals' section, the only explicitly handled signals are SIGINT,
1834     SIGTERM and SIGHUP.
1835   - Add Haiku to the list of operating systems on which Privoxy is known to
1836     run.
1837   - Add DragonFly to the list of BSDs on which Privoxy is known to run.
1838   - Removed references to redhat-specific documentation set since it no longer
1839     exists.
1840   - Removed references to building PDFs since we no longer do so.
1841   - Multiple listen-address directives are supported since 3.0.18, correct the
1842     documentation to say so.
1843   - Remove bogus section about long and short being preferable to int.
1844   - Corrected some Internet JunkBuster references to Privoxy.
1845   - Removed references to www.junkbusters.com since it is no longer
1846     maintained. Reported by Angelina Matson.
1847   - Various grammar and spelling corrections
1848   - Add a client-header-tagger{} example for disabling filtering for range
1849     requests.
1850   - Correct a URL in the "Privoxy with Tor" FAQ.
1851   - Spell 'refresh-tags' correctly. Reported by Don in #3571927.
1852   - Sort manpage options alphabetically.
1853   - Remove an incorrect sentence in the toggle section. The toggle state
1854     doesn't affect whether or not the Windows version uses the tray icon.
1855     Reported by Zeno Kugy in #3596395.
1856   - Add new contributors since 3.0.19.
1857
1858 - Log message improvements:
1859   - When stopping to watch a client socket due to pipelining, additionally log
1860     the socket number.
1861   - Log the client socket and its condition before closing it. This makes it
1862     more obvious that the socket actually gets closed and should help when
1863     diagnosing problems like #3464439.
1864   - In case of SOCKS5 failures, do not explicitly log the server's response.
1865     It hasn't helped so far and the response can already be logged by enabling
1866     "debug 32768" anyway. This reverts v1.81 and the follow-up bug fix v1.84.
1867   - Relocate the connection-accepted message from listen_loop() to serve().
1868     This way it's printed by the thread that is actually serving the
1869     connection which is nice when grepping for thread ids in log files.
1870
1871 - Code cleanups:
1872   - Remove compatibility layer for versions prior to 3.0 since it has been
1873     obsolete for more than 10 years now.
1874   - Remove the ijb_isupper() and ijb_tolower() macros from parsers.c since
1875     they aren't used in this file.
1876   - Removed the 'Functions declared include:' comment sections since they tend
1877     to be incomplete, incorrect and out of date and the benefit seems
1878     questionable.
1879   - Various comment grammar and comprehensibility improvements.
1880   - Remove a pointless fflush() call in chat(). Flushing all streams pretty
1881     much all the time for no obvious reason is ridiculous.
1882   - Relocate ijb_isupper()'s definition to project.h and get the ijb_tolower()
1883     definition from there, too.
1884   - Relocate ijb_isdigit()'s definition to project.h.
1885   - Rename ijb_foo macros to privoxy_foo.
1886   - Add malloc_or_die() which will allow to simplify code paths where malloc()
1887     failures don't need to be handled gracefully.
1888   - Add strdup_or_die() which will allow to simplify code paths where strdup()
1889     failures don't need to be handled gracefully.
1890   - Replace strdup() calls with strdup_or_die() calls where it's safe and
1891     simplifies the code.
1892   - Fix white-space around parentheses.
1893   - Add missing white-space behind if's and the following parentheses.
1894   - Unwrap a memcpy() call in resolve_hostname_to_ip().
1895   - Declare pcrs_get_delimiter()'s delimiters[] static const.
1896   - Various optimisations to remove dead code and merge inefficient code
1897     structures for improved clarity, performance or code compactness.
1898   - Various data type corrections.
1899   - Change visibility of several code segments when compiling without
1900     FEATURE_CONNECTION_KEEP_ALIVE enabled for clarity.
1901   - In pcrs_get_delimiter(), do not use delimiters outside the ASCII range.
1902     Fixes a clang complaint.
1903   - Fix an error message in get_last_url() nobody is supposed to see.
1904     Reported by Matthew Fischer in #3507301.
1905   - Fix a typo in the no-zlib-support complaint. Patch submitted by Matthew
1906     Fischer in #3507304.
1907   - Shorten ssplit()'s prototype by removing the last two arguments. We always
1908     want to skip empty fields and ignore leading delimiters, so having
1909     parameters for this only complicates the API.
1910   - Use an enum for the type of the action value.
1911   - Rename action_name's member takes_value to value_type as it isn't used as
1912     boolean.
1913   - Turn family mismatches in match_sockaddr() into fatal errors.
1914   - Let enlist_unique_header() verify that the caller didn't pass a header
1915     containing either \r or \n.
1916   - Change the hashes used in load_config() to unsigned int. That's what
1917     hash_string() actually returns and using a potentially larger type
1918     is at best useless.
1919   - Use privoxy_tolower() instead of vanilla tolower() with manual casting of
1920     the argument.
1921   - Catch ssplit() failures in parse_cgi_parameters().
1922
1923 - Privoxy-Regression-Test:
1924   - Add an 'Overwrite condition' directive to skip any matching tests before
1925     it. As it has a global scope, using it is more convenient than clowning
1926     around with the Ignore directive.
1927   - Log to STDOUT instead of STDERR.
1928   - Include the Privoxy version in the output.
1929   - Various grammar and spelling corrections in documentation and code.
1930   - Additional tests for range requests with filtering enabled.
1931   - Tests with mostly invalid range request.
1932   - Add a couple of hide-if-modified-since{} tests with different date formats.
1933   - Cleaned up the format of the regression-tests.action file to match the
1934     format of default.action.
1935   - Remove the "Copyright" line from print_version(). When using --help, every
1936     line of screen space matters and thus shouldn't be wasted on things the
1937     user doesn't care about.
1938
1939 - Privoxy-Log-Parser:
1940   - Improve the --statistics performance by skipping sanity checks for input
1941     that shouldn't affect the results anyway. Add a --strict-checks option
1942     that enables some of the checks again, just in case anybody cares.
1943   - The distribution of client requests per connection is included in
1944     the --statistic output.
1945   - The --accept-unknown-messages option has been removed and the behavior
1946     is now the default.
1947   - Accept and (mostly) highlight new log messages introduced with
1948     Privoxy 3.0.20.
1949
1950 - uagen:
1951   - Bump generated Firefox version to 17.
1952
1953 - GNUmakefile improvements:
1954   - The dok-tidy target no longer taints documents with a tidy-mark
1955   - Change RA_MODE from 0664 to 0644. Suggested by Markus Dittrich in
1956     #3505445.
1957   - Remove tidy's clean flag as it changes the scope of attributes.
1958     Link-specific colors end up being applied to all text. Reported by Adam
1959     Piggott in #3569551.
1960   - Leave it up to the user whether or not smart tags are inserted.
1961   - Let w3m itself do the line wrapping for the config file. It works better
1962     than fmt as it can honour pre tags causing less unintentional line breaks.
1963   - Ditch a pointless '-r' passed to rm to delete files.
1964   - The config-file target now requires less manual intervention and updates
1965     the original config.
1966   - Change WDUMP to generate ASCII. Add WDUMP_UTF8 to allow UTF-8 in the
1967     AUTHORS file so the names are right.
1968   - Stop pretending that lynx and links are supported for the documentation.
1969
1970 - configure improvements:
1971   - On Haiku, do not pass -lpthread to the compiler. Haiku's pthreads
1972     implementation is contained in its system library, libroot, so no
1973     additional library needs to be searched.
1974     Patch submitted by Simon South in #3564815.
1975   - Additional Haiku-specific improvements. Disable checks intended for
1976     multi-user systems as Haiku is presently single-user. Group Haiku-specific
1977     settings in their own section, following the pattern for Solaris, OS/2 and
1978     AmigaOS. Add additional library-related settings to remove the need for
1979     providing configure with custom LDFLAGS.
1980     Submitted by Simon South in #3574538.
1981
1982 *** Version 3.0.19 Stable ***
1983
1984 - Bug fixes:
1985   - Prevent a segmentation fault when de-chunking buffered content.
1986     It could be triggered by malicious web servers if Privoxy was
1987     configured to filter the content and running on a platform
1988     where SIZE_T_MAX isn't larger than UINT_MAX, which probably
1989     includes most 32-bit systems. On those platforms, all Privoxy
1990     versions before 3.0.19 appear to be affected.
1991     To be on the safe side, this bug should be presumed to allow
1992     code execution as proving that it doesn't seems unrealistic.
1993   - Do not expect a response from the SOCKS4/4A server until it
1994     got something to respond to. This regression was introduced
1995     in 3.0.18 and prevented the SOCKS4/4A negotiation from working.
1996     Reported by qqqqqw in #3459781.
1997
1998 - General improvements:
1999   - Fix an off-by-one in an error message about connect failures.
2000   - Use a GNUMakefile variable for the webserver root directory and
2001     update the path. Sourceforge changed it which broke various
2002     web-related targets.
2003   - Update the CODE_STATUS description.
2004
2005 *** Version 3.0.18 Stable ***
2006
2007 - Bug fixes:
2008   - If a generated redirect URL contains characters RFC 3986 doesn't
2009     permit, they are (re)encoded. Not doing this makes Privoxy versions
2010     from 3.0.5 to 3.0.17 susceptible to HTTP response splitting (CWE-113)
2011     attacks if the +fast-redirects{check-decoded-url} action is used.
2012   - Fix a logic bug that could cause Privoxy to reuse a server
2013     socket after it got tainted by a server-header-tagger-induced
2014     block that was triggered before the whole server response had
2015     been read. If keep-alive was enabled and the request following
2016     the blocked one was to the same host and using the same forwarding
2017     settings, Privoxy would send it on the tainted server socket.
2018     While the server would simply treat it as a pipelined request,
2019     Privoxy would later on fail to properly parse the server's
2020     response as it would try to parse the unread data from the
2021     first response as server headers for the second one.
2022     Regression introduced in 3.0.17.
2023   - When implying keep-alive in client_connection(), remember that
2024     the client didn't. Fixes a regression introduced in 3.0.13 that
2025     would cause Privoxy to wait for additional client requests after
2026     receiving a HTTP/1.1 request with "Connection: close" set
2027     and connection sharing enabled.
2028     With clients which terminates the client connection after detecting
2029     that the whole body has been received it doesn't really matter,
2030     but with clients that don't the connection would be kept open until
2031     it timed out.
2032   - Fix a subtle race condition between prepare_csp_for_next_request()
2033     and sweep(). A thread preparing itself for the next client request
2034     could briefly appear to be inactive.
2035     If all other threads were already using more recent files,
2036     the thread could get its files swept away under its feet.
2037     So far this has only been reproduced while stress testing in
2038     valgrind while touching action files in a loop. It's unlikely
2039     to have caused any actual problems in the real world.
2040   - Disable filters if SDCH compression is used unless filtering is forced.
2041     If SDCH was combined with a supported compression algorithm, Privoxy
2042     previously could try to decompress it and ditch the Content-Encoding
2043     header even though the SDCH compression wasn't dealt with.
2044     Reported by zebul666 in #3225863.
2045   - Make a copy of the --user value and only mess with that when splitting
2046     user and group. On some operating systems modifying the value directly
2047     is reflected in the output of ps and friends and can be misleading.
2048     Reported by zepard in #3292710.
2049   - If forwarded-connect-retries is set, only retry if Privoxy is actually
2050     forwarding the request. Previously direct connections would be retried
2051     as well.
2052   - Fixed a small memory leak when retrying connections with IPv6
2053     support enabled.
2054   - Remove an incorrect assertion in compile_dynamic_pcrs_job_list()
2055     It could be triggered by a pcrs job with an invalid pcre
2056     pattern (for example one that contains a lone quantifier).
2057   - If the --user argument user[.group] contains a dot, always bail out
2058     if no group has been specified. Previously the intended, but undocumented
2059     (and apparently untested), behaviour was to try interpreting the whole
2060     argument as user name, but the detection was flawed and checked for '0'
2061     instead of '\0', thus merely preventing group names beginning with a zero.
2062   - In html_code_map[], use a numeric character reference instead of '
2063     which wasn't standardized before XHTML 1.0.
2064   - Fix an invalid free when compiled with FEATURE_GRACEFUL_TERMINATION
2065     and shut down through http://config.privoxy.org/die
2066   - In get_actions(), fix the "temporary" backwards compatibility hack
2067     to accept block actions without reason.
2068     It also covered other actions that should be rejected as invalid.
2069     Reported by Billy Crook.
2070
2071 - General improvements:
2072   - Privoxy can (re)compress buffered content before delivering
2073     it to the client. Disabled by default as most users wouldn't
2074     benefit from it.
2075   - The +fast-redirects{check-decoded-url} action checks URL
2076     segments separately. If there are other parameters behind
2077     the redirect URL, this makes it unnecessary to cut them off
2078     by additionally using a +redirect{} pcrs command.
2079     Initial patch submitted by Jamie Zawinski in #3429848.
2080   - When loading action sections, verify that the referenced filters
2081     exist. Currently missing filters only result in an error message,
2082     but eventually the severity will be upgraded to fatal.
2083   - Allow to bind to multiple separate addresses.
2084     Patch set submitted by Petr Pisar in #3354485.
2085   - Set socket_error to errno if connecting fails in rfc2553_connect_to().
2086     Previously rejected direct connections could be incorrectly reported
2087     as DNS issues if Privoxy was compiled with IPv6 support.
2088   - Adjust url_code_map[] so spaces are replaced with %20 instead of '+'
2089     While '+' can be used by client's submitting form data, this is not
2090     actually what Privoxy is using the lookups for. This is more of a
2091     cosmetic issue and doesn't fix any known problems.
2092   - When compiled without FEATURE_FAST_REDIRECTS, do not silently
2093     ignore +fast-redirect{} directives
2094   - Added a workaround for GNU libc's strptime() reporting negative
2095     year values when the parsed year is only specified with two digits.
2096     On affected systems cookies with such a date would not be turned
2097     into session cookies by the +session-cookies-only action.
2098     Reported by Vaeinoe in #3403560
2099   - Fixed bind failures with certain GNU libc versions if no non-loopback
2100     IP address has been configured on the system. This is mainly an issue
2101     if the system is using DHCP and Privoxy is started before the network
2102     is completely configured.
2103     Reported by Raphael Marichez in #3349356.
2104     Additional insight from Petr Pisar.
2105   - Privoxy log messages now use the ISO 8601 date format %Y-%m-%d.
2106     It's only slightly longer than the old format, but contains
2107     the full date including the year and allows sorting by date
2108     (when grepping in multiple log files) without hassle.
2109   - In get_last_url(), do not bother trying to decode URLs that do
2110     not contain at least one '%' sign. It reduces the log noise and
2111     a number of unnecessary memory allocations.
2112   - In case of SOCKS5 failures, dump the socks response in the log message.
2113   - Simplify the signal setup in main().
2114   - Streamline socks5_connect() slightly.
2115   - In socks5_connect(), require a complete socks response from the server.
2116     Previously Privoxy didn't care how much data the server response
2117     contained as long as the first two bytes contained the expected
2118     values. While at it, shrink the buffer size so Privoxy can't read
2119     more than a whole socks response.
2120   - In chat(), do not bother to generate a client request in case of
2121     direct CONNECT requests. It will not be used anyway.
2122   - Reduce server_last_modified()'s stack size.
2123   - Shorten get_http_time() by using strftime().
2124   - Constify the known_http_methods pointers in unknown_method().
2125   - Constify the time_formats pointers in parse_header_time().
2126   - Constify the formerly_valid_actions pointers in action_used_to_be_valid().
2127   - Introduce a GNUMakefile MAN_PAGE variable that defaults to privoxy.1.
2128     The Debian package uses section 8 for the man page and this
2129     should simplify the patch.
2130   - Deduplicate the INADDR_NONE definition for Solaris by moving it to jbsockets.h
2131   - In block_url(), ditch the obsolete workaround for ancient Netscape versions
2132     that supposedly couldn't properly deal with status code 403.
2133   - Remove a useless NULL pointer check in load_trustfile().
2134   - Remove two useless NULL pointer checks in load_one_re_filterfile().
2135   - Change url_code_map[] from an array of pointers to an array of arrays
2136     It removes an unnecessary layer of indirection and on 64bit system reduces
2137     the size of the binary a bit.
2138   - Fix various typos. Fixes taken from Debian's 29_typos.dpatch by Roland Rosenfeld.
2139   - Add a dok-tidy GNUMakefile target to clean up the messy HTML
2140     generated by the other dok targets.
2141   - GNUisms in the GNUMakefile have been removed.
2142   - Change the HTTP version in static responses to 1.1
2143   - Synced config.sub and config.guess with upstream
2144     2011-11-11/386c7218162c145f5f9e1ff7f558a3fbb66c37c5.
2145   - Add a dedicated function to parse the values of toggles. Reduces duplicated
2146     code in load_config() and provides better error handling. Invalid or missing
2147     toggle values are now a fatal error instead of being silently ignored.
2148   - Terminate HTML lines in static error messages with \n instead of \r\n.
2149   - Simplify cgi_error_unknown() a bit.
2150   - In LogPutString(), don't bother looking at pszText when not
2151     actually logging anything.
2152   - Change ssplit()'s fourth parameter from int to size_t.
2153     Fixes a clang complaint.
2154   - Add a warning that the statistics currently can't be trusted.
2155     Mention Privoxy-Log-Parser's --statistics option as
2156     an alternative for the time being.
2157   - In rfc2553_connect_to(), start setting cgi->error_message on error.
2158   - Change the expected status code returned for http://p.p/die depending
2159     on whether or not FEATURE_GRACEFUL_TERMINATION is available.
2160   - In cgi_die(), mark the client connection for closing.
2161     If the client will fetch the style sheet through another connection
2162     it gets the main thread out of the accept() state and should thus
2163     trigger the actual shutdown.
2164   - Add a proper CGI message for cgi_die().
2165   - Don't enforce a logical line length limit in read_config_line().
2166   - Slightly refactor server_last_modified() to remove useless gmtime*() calls.
2167   - In get_content_type(), also recognize '.jpeg' as JPEG extension.
2168   - Add '.png' to the list of recognized file extensions in get_content_type().
2169   - In block_url(), consistently use the block reason "Request blocked by Privoxy"
2170     In two places the reason was "Request for blocked URL" which hides the
2171     fact that the request got blocked by Privoxy and isn't necessarily
2172     correct as the block may be due to tags.
2173   - In listen_loop(), reload the configuration files after accepting
2174     a new connection instead of before.
2175     Previously the first connection that arrived after a configuration
2176     change would still be handled with the old configuration.
2177   - In chat()'s receive-data loop, skip a client socket check if
2178     the socket will be written to right away anyway. This can
2179     increase the transfer speed for unfiltered content on fast
2180     network connections.
2181   - The socket timeout is used for SOCKS negotiations as well which
2182     previously couldn't timeout.
2183   - Don't keep the client connection alive if any configuration file
2184     changed since the time the connection came in. This is closer to
2185     Privoxy's behaviour before keep-alive support for client connection
2186     has been added and also less confusing in general.
2187   - Treat all Content-Type header values containing the pattern
2188     'script' as a sign of text. Reported by pribog in #3134970.
2189
2190 - Action file improvements:
2191   - Moved the site-specific block pattern section below the one for the
2192     generic patterns so for requests that are matched in both, the block
2193     reason for the domain is shown which is usually more useful than showing
2194     the one for the generic pattern.
2195   - Remove -prevent-compression from the fragile alias. It's no longer
2196     used anywhere by default and isn't known to break stuff anyway.
2197   - Add a (disabled) section to block various Facebook tracking URLs.
2198     Reported by Dan Stahlke in #3421764.
2199   - Add a (disabled) section to rewrite and redirect click-tracking
2200     URLs used on news.google.com.
2201     Reported by Dan Stahlke in #3421755.
2202   - Unblock linuxcounter.net/.
2203     Reported by Dan Stahlke in #3422612.
2204   - Block 'www91.intel.com/' which is used by Omniture.
2205     Reported by Adam Piggott in #3167370.
2206   - Disable the handle-as-empty-doc-returns-ok option and mark it as deprecated.
2207     Reminded by tceverling in #2790091.
2208   - Add ".ivwbox.de/" to the "Cross-site user tracking" section.
2209     Reported by Nettozahler in #3172525.
2210   - Unblock and fast-redirect ".awin1.com/.*=http://".
2211     Reported by Adam Piggott in #3170921.
2212   - Block "b.collective-media.net/".
2213   - Widen the Debian popcon exception to "qa.debian.org/popcon".
2214     Seen in Debian's 05_default_action.dpatch by Roland Rosenfeld.
2215   - Block ".gemius.pl/" which only seems to be used for user tracking.
2216     Reported by johnd16 in #3002731. Additional input from Lee and movax.
2217   - Disable banners-by-size filters for '.thinkgeek.com/'.
2218     The filter only seems to catch pictures of the inventory.
2219   - Block requests for 'go.idmnet.bbelements.com/please/showit/'.
2220     Reported by kacperdominik in #3372959.
2221   - Unblock adainitiative.org/.
2222   - Add a fast-redirects exception for '.googleusercontent.com/.*=cache'.
2223   - Add a fast-redirects exception for webcache.googleusercontent.com/.
2224   - Unblock http://adassier.wordpress.com/ and http://adassier.files.wordpress.com/.
2225
2226 - Filter file improvements:
2227   - Let the yahoo filter hide '.ads'.
2228   - Let the msn filter hide overlay ads for Facebook 'likes' in search
2229     results and elements with the id 's_notf_div'. They only seem to be
2230     used to advertise site 'enhancements'.
2231   - Let the js-events filter additionally disarm setInterval().
2232     Suggested by dg1727 in #3423775.
2233
2234 - Documentation improvements:
2235   - Clarify the effect of compiling Privoxy with zlib support.
2236     Suggested by dg1727 in #3423782.
2237   - Point out that the SourceForge messaging system works like a black
2238     hole and should thus not be used to contact individual developers.
2239   - Mention some of the problems one can experience when not explicitly
2240     configuring an IP addresses as listen address.
2241   - Explicitly mention that hostnames can be used instead of IP addresses
2242     for the listen-address, that only the first address returned will be
2243     used and what happens if the address is invalid.
2244     Requested by Calestyo in #3302213.
2245
2246 - Log message improvements:
2247   - If only the server connection is kept alive, do not pretend to
2248     wait for a new client request.
2249   - Remove a superfluous log message in forget_connection().
2250   - In chat(), properly report missing server responses as such
2251     instead of calling them empty.
2252   - In forwarded_connect(), fix a log message nobody should ever see.
2253   - Fix a log message in socks5_connect(), a failed write operation
2254     was logged as failed read operation.
2255   - Let load_one_actions_file() properly complain about a missing
2256     '{' at the beginning of the file.
2257     Simply stating that a line is invalid isn't particularly helpful.
2258   - Do not claim to listen on a socket until Privoxy actually does.
2259     Patch submitted by Petr Pisar #3354485
2260   - Prevent a duplicated LOG_LEVEL_CLF message when sending out
2261     the "no-server-data" response.
2262   - Also log the client socket when dropping a connection.
2263   - Include the destination host in the 'Request ... marked for
2264     blocking. limit-connect{...} doesn't allow CONNECT ...' message
2265     Patch submitted by Saperski in #3296250.
2266   - Prevent a duplicated log message if none of the resolved IP
2267     addresses were reachable.
2268   - In connect_to(), do not pretend to retry if forwarded-connect-retries
2269     is zero or unset.
2270   - When a specified user or group can't be found, put the name in
2271     single-quotes when logging it.
2272   - In rfc2553_connect_to(), explain getnameinfo() errors better.
2273   - Remove a useless log message in chat().
2274   - When retrying to connect, also log the maximum number of connection
2275     attempts.
2276   - Rephrase a log message in compile_dynamic_pcrs_job_list().
2277     Divide the error code and its meaning with a colon. Call the pcrs
2278     job dynamic and not the filter. Filters may contain dynamic and
2279     non-dynamic pcrs jobs at the same time. Only mention the name of
2280     the filter or tagger, but don't claim it's a filter when it could
2281     be a tagger.
2282   - In a fatal error message in load_one_actions_file(), cover both
2283     URL and TAG patterns.
2284   - In pcrs_strerror(), properly report unknown positive error code
2285     values as such. Previously they were handled like 0 (no error).
2286   - In compile_dynamic_pcrs_job_list(), also log the actual error code as
2287     pcrs_strerror() doesn't handle all errors reported by pcre.
2288   - Don't bother trying to continue chatting if the client didn't ask for it.
2289     Reduces log noise a bit.
2290   - Make two fatal error message in load_one_actions_file() more descriptive.
2291   - In cgi_send_user_manual(), log when rejecting a file name due to '/' or '..'.
2292   - In load_file(), log a message if opening a file failed.
2293     The CGI error message alone isn't too helpful.
2294   - In connection_destination_matches(), improve two log messages
2295     to help understand why the destinations don't match.
2296   - Rephrase a log message in serve(). Client request arrival
2297     should be differentiated from closed client connections now.
2298   - In serve(), log if a client connection isn't reused due to a
2299     configuration file change.
2300   - Let mark_server_socket_tainted() always mark the server socket tainted,
2301     just don't talk about it in cases where it has no effect. It doesn't change
2302     Privoxy's behaviour, but makes understanding the log file easier.
2303
2304 - configure:
2305   - Added a --disable-ipv6-support switch for platforms where support
2306     is detected but doesn't actually work.
2307   - Do not check for the existence of strerror() and memmove() twice
2308   - Remove a useless test for setpgrp(2). Privoxy doesn't need it and
2309     it can cause problems when cross-compiling.
2310   - Rename the --disable-acl-files switch to --disable-acl-support.
2311     Since about 2001, ACL directives are specified in the standard
2312     config file.
2313   - Update the URL of the 'Removing outdated PCRE version after the
2314     next stable release' posting. The old URL stopped working after
2315     one of SF's recent site "optimizations". Reported by Han Liu.
2316
2317 - Privoxy-Regression-Test:
2318   - Added --shuffle-tests option to increase the chances of detection race conditions.
2319   - Added a --local-test-file option that allows to use Privoxy-Regression-Test without Privoxy.
2320   - Added tests for missing socks4 and socks4a forwarders.
2321   - The --privoxy-address option now works with IPv6 addresses containing brackets, too.
2322   - Perform limited sanity checks for parameters that are supposed to have numerical values.
2323   - Added a --sleep-time option to specify a number of seconds to
2324     sleep between tests, defaults to 0.
2325   - Disable the range-requests tagger for tests that break if it's enabled.
2326   - Log messages use the ISO 8601 date format %Y-%m-%d.
2327   - Fix spelling in two error messages.
2328   - In the --help output, include a list of supported tests and their default levels.
2329   - Adjust the tests to properly deal with FEATURE_TOGGLE being disabled.
2330
2331 - Privoxy-Log-Parser:
2332   - Perform limited sanity checks for command line parameters that
2333     are supposed to have numerical values.
2334   - Implement a --unbreak-lines-only option to try to revert MUA breakage.
2335   - Accept and highlight: Added header: Content-Encoding: deflate
2336   - Accept and highlight: Compressed content from 29258 to 8630 bytes.
2337   - Accept and highlight: Client request arrived in time on socket 21.
2338   - Highlight: Didn't receive data in time: a.fsdn.com:443
2339   - Accept log messages with ISO 8601 time stamps, too.
2340
2341 - uagen:
2342   - Bump generated Firefox version to 8.0.
2343   - Only randomize the release date if the new --randomize-release-date
2344     option is enabled. Firefox versions after 4 use a fixed date string
2345     without meaning.
2346
2347 *** Version 3.0.17 Stable ***
2348
2349 - Fixed last-chunk-detection for responses where the body was small
2350   enough to be read with the headers, causing Privoxy to wait for the
2351   end of the content until the server closed the connection or the
2352   request timed out. Reported by "Karsten" in #3028326.
2353 - Responses with status code 204 weren't properly detected as body-less
2354   like RFC2616 mandates. Like the previous bug, this caused Privoxy to
2355   wait for the end of the content until the server closed the connection
2356   or the request timed out. Fixes #3022042 and #3025553, reported by a
2357   user with no visible name. Most likely also fixes a bunch of other
2358   AJAX-related problem reports that got closed in the past due to
2359   insufficient information and lack of feedback.
2360 - Fixed an ACL bug that made it impossible to build a blacklist.
2361   Usually the ACL directives are used in a whitelist, which worked
2362   as expected, but blacklisting is still useful for public proxies
2363   where one only needs to deny known abusers access.
2364 - Added LOG_LEVEL_RECEIVED to log the not-yet-parsed data read from the
2365   network. This should make debugging various parsing issues a lot easier.
2366 - The IPv6 code is enabled by default on Windows versions that support it.
2367   Patch submitted by oCameLo in #2942729.
2368 - In mingw32 versions, the user.filter file is reachable through the
2369   GUI, just like default.filter is. Feature request 3040263.
2370 - Added the configure option --enable-large-file-support to set a few
2371   defines that are required by platforms like GNU/Linux to support files
2372   larger then 2GB. Mainly interesting for users without proper logfile
2373   management.
2374 - Logging with "debug 16" no longer stops at the first nul byte which is
2375   pretty useless. Non-printable characters are replaced with their hex value
2376   so the result can't span multiple lines making parsing them harder then
2377   necessary.
2378 - Privoxy logs when reading an action, filter or trust file.
2379 - Fixed incorrect regression test markup which caused a test in
2380   3.0.16 to fail while Privoxy itself was working correctly.
2381   While Privoxy accepts hide-referer, too, the action name is actually
2382   hide-referrer which is also the name used one the final results page,
2383   where the test expected the alias.
2384
2385 - CGI interface improvements:
2386   - In finish_http_response(), continue to add the 'Connection: close'
2387     header if the client connection will not be kept alive.
2388     Anonymously pointed out in #2987454.
2389   - Apostrophes in block messages no longer cause parse errors
2390     when the blocked page is viewed with JavaScript enabled.
2391     Reported by dg1727 in #3062296.
2392   - Fix a bunch of anchors that used underscores instead of dashes.
2393   - Allow to keep the client connection alive after crunching the previous request.
2394     Already opened server connections can be kept alive, too.
2395   - In cgi_show_url_info(), don't forget to prefix URLs that only contain
2396     http:// or https:// in the path. Fixes #2975765 reported by Adam Piggott.
2397   - Show the 404 CGI page if cgi_send_user_manual() is called while
2398     local user manual delivery is disabled.
2399
2400 - Action file improvements:
2401   - Enable user.filter by default. Suggested by David White in #3001830.
2402   - Block .sitestat.com/. Reported by johnd16 in #3002725.
2403   - Block .atemda.com/. Reported by johnd16 in #3002723.
2404   - Block js.adlink.net/. Reported by johnd16 in #3002720.
2405   - Block .analytics.yahoo.com/. Reported by johnd16 in #3002713.
2406   - Block sb.scorecardresearch.com, too. Reported by dg1727 in #2992652.
2407   - Fix problems noticed on Yahoo mail and news pages.
2408   - Remove the too broad yahoo section, only keeping the
2409     fast-redirects exception as discussed on ijbswa-devel@.
2410   - Don't block adesklets.sourceforge.net. Reported in #2974204.
2411   - Block chartbeat ping tracking. Reported in #2975895.
2412   - Tag CSS and image requests with cautious and medium settings, too.
2413   - Don't handle view.atdmt.com as image. It's used for click-throughs
2414     so users should be able to "go there anyway".
2415     Reported by Adam Piggott in #2975927.
2416   - Also let the refresh-tags filter remove invalid refresh tags where
2417     the 'url=' part is missing. Anonymously reported in #2986382.
2418     While at it, update the description to mention the fact that only
2419     refresh tags with refresh times above 9 seconds are covered.
2420   - javascript needs to be blocked with +handle-as-empty-document to
2421     work around Firefox bug 492459.  So move .js blockers from
2422     +block{Might be a web-bug.} -handle-as-empty-document to
2423     +block{Might be a web-bug.} +handle-as-empty-document.
2424   - ijbswa-Feature Requests-3006719 - Block 160x578 Banners.
2425   - Block another omniture tracking domain.
2426   - Added a range-requests tagger.
2427   - Added two sections to get Flickr's Ajax interface working with
2428     default pre-settings. If you change the configuration to block
2429     cookies by default, you'll need additional exceptions.
2430     Reported by Mathias Homann in #3101419 and by Patrick on ijbswa-users@.
2431
2432 - Documentation improvements:
2433   - Explicitly mention how to match all URLs.
2434   - Consistently recommend socks5 in the Tor FAQ entry and mention
2435     its advantage compared to socks4a. Reported by David in #2960129.
2436   - Slightly improve the explanation of why filtering may appear
2437     slower than it is.
2438   - Grammar fixes for the ACL section.
2439   - Fixed a link to the 'intercepting' entry and add another one.
2440   - Rename the 'Other' section to 'Mailing Lists' and reword it
2441     to make it clear that nobody is forced to use the trackers
2442   - Note that 'anonymously' posting on the trackers may not always
2443     be possible.
2444   - Suggest to enable debug 32768 when suspecting parsing problems.
2445
2446 - Privoxy-Log-Parser improvements:
2447   - Gather statistics for ressources, methods, and HTTP versions
2448     used by the client.
2449   - Also gather statistics for blocked and redirected requests.
2450   - Provide the percentage of keep-alive offers the client accepted.
2451   - Add a --url-statistics-threshold option.
2452   - Add a --host-statistics-threshold option to also gather
2453     statistics about how many request where made per host.
2454   - Fix a bug in handle_loglevel_header() where a 'scan: ' got lost.
2455   - Add a --shorten-thread-ids option to replace the thread id with
2456     a decimal number.
2457   - Accept and ignore: Looks like we got the last chunk together
2458     with the server headers. We better stop reading.
2459   - Accept and ignore: Continue hack in da house.
2460   - Accept and higlight: Rejecting connection from 10.0.0.2.
2461     Maximum number of connections reached.
2462   - Accept and highlight: Loading actions file: /usr/local/etc/privoxy/default.action
2463   - Accept and highlight: Loading filter file: /usr/local/etc/privoxy/default.filter
2464   - Accept and highlight: Killed all-caps Host header line: HOST: bestproxydb.com
2465   - Accept and highlight: Reducing expected bytes to 0. Marking
2466     the server socket tainted after throwing 4 bytes away.
2467   - Accept: Merged multiple header lines to: 'X-FORWARDED-PROTO: http X-HOST: 127.0.0.1'
2468
2469 - Code cleanups:
2470   - Remove the next member from the client_state struct. Only the main
2471     thread needs access to all client states so give it its own struct.
2472   - Garbage-collect request_contains_null_bytes().
2473   - Ditch redundant code in unload_configfile().
2474   - Ditch LogGetURLUnderCursor() which doesn't seem to be used anywhere.
2475   - In write_socket(), remove the write-only variable write_len in
2476     an ifdef __OS2__ block. Spotted by cppcheck.
2477   - In connect_to(), don't declare the variable 'flags' on OS/2 where
2478     it isn't used. Spotted by cppcheck.
2479   - Limit the scope of various variables. Spotted by cppcheck.
2480   - In add_to_iob(), turn an interestingly looking for loop into a
2481     boring while loop.
2482   - Code cleanup in preparation for external filters.
2483   - In listen_loop(), mention the socket on which we accepted the
2484     connection, not just the source IP address.
2485   - In write_socket(), also log the socket we're writing to.
2486   - In log_error(), assert that escaped characters get logged
2487     completely or not at all.
2488   - In log_error(), assert that ival and sval have reasonable values.
2489     There's no reason not to abort() if they don't.
2490   - Remove an incorrect cgi_error_unknown() call in a
2491     cannot-happen-situation in send_crunch_response().
2492   - Clean up white-space in http_response definition and
2493     move the crunch_reason to the beginning.
2494   - Turn http_response.reason into an enum and rename it
2495     to http_response.crunch_reason.
2496   - Silence a 'gcc (Debian 4.3.2-1.1) 4.3.2' warning on i686 GNU/Linux.
2497   - Fix white-space in a log message in remove_chunked_transfer_coding().
2498     While at it, add a note that the message doesn't seem to
2499     be entirely correct and should be improved later on.
2500
2501 - GNUmakefile improvements:
2502   - Use $(SSH) instead of ssh, so one only needs to specify a username once.
2503   - Removed references to the action feedback thingy that hasn't been
2504     working for years.
2505   - Consistently use shell.sourceforge.net instead of shell.sf.net so
2506     one doesn't need to check server fingerprints twice.
2507   - Removed GNUisms in the webserver and webactions targets so they
2508     work with standard tar.
2509
2510 *** Version 3.0.16 Stable ***
2511
2512 - Added the config file option handle-as-empty-doc-returns-ok to
2513   work around Firefox bug #492459, which causes Firefox to hang
2514   if JavaScripts are blocked in certain situations. The option is
2515   enabled in the default config file.
2516 - Added the config file option default-server-timeout to control the
2517   assumed default server timeout. Since Privoxy no longer returns
2518   an error message for connection resets on reused client connections,
2519   assuming larger server timeout values appears to actually work
2520   pretty well as long as connections aren't shared.
2521 - Added optional support for FreeBSD's accf_http(9). Use the
2522   configure option --enable-accept-filter to enable it.
2523 - Added fancier Privoxy icons for win32. Contributed by Jeff H.
2524 - In daemon mode, fd 0, 1 and 2 are bound to /dev/null.
2525 - Resolve localhost using whatever address family the operating
2526   system feels like. Previous betas would try to use IPv4 as this
2527   is what most users expect, but this didn't work reliably on
2528   GNU/Linux systems.
2529 - In the action lists on CGI pages, actions and their parameters are
2530   no longer separated with a space. The action file parser doesn't
2531   actually allow this and will throw an invalid syntax error if actions
2532   and parameters in the action files are separated. Not adding the
2533   spaces means copy and pasting CGI output into the action files works.
2534 - The default keep-alive timeout has been reduced to 5 seconds to work
2535   around hangs in clients that treat the proxy like any other host and
2536   stop allowing any new connections if the "maximum number of
2537   connections per host" is reached.
2538 - Several webbug URLs that look like they are leading to images are now
2539   blocked as image instead of empty documents. Doing the latter causes
2540   WebKit-based clients to show a "missing image" icon which may mess up
2541   the layout.
2542 - The no-such-domain template is used for DNS resolution
2543   problems with FEATURE_IPV6_SUPPORT enabled. Previously the
2544   connect-failed template was used. Reported by 'zebul666'.
2545 - Accepts quoted expiration dates even though RFC 2109 10.1.2
2546   doesn't seem to allow them. Reported anonymously.
2547 - Don't try to forget connections if connection sharing is disabled.
2548   This wasn't a real problem but caused an unnecessary log message.
2549 - The still undocumented --enable-extended-host-patterns configure
2550   option has a better description.
2551 - Fixed an error message that would claim a write to the server
2552   failed when actually writing to the client failed.
2553 - Log the crunch reason before trying to write to the client.
2554   The log is easier to read that way.
2555 - Several log messages about client connections also mention
2556   the socket number.
2557 - handle-as-empty-document no longer depends on the image blocking
2558   code being enabled.
2559 - Privoxy-Log-Parser is roughly 40% faster in highlighting mode.
2560 - uagen, a Firefox User-Agent generator for Privoxy and Mozilla
2561   browsers has been imported and is available in the tarball's
2562   tools directory.
2563 - The scripts in the tools directory treat unknown parameters
2564   as fatal errors.
2565
2566 *** Version 3.0.15 beta ***
2567
2568 - In case of missing server data, no error message is send to the
2569   client if the request arrived on a reused connection. The client
2570   is then supposed to silently retry the request without bothering
2571   the user. This should significantly reduce the frequency of the
2572   "No server or forwarder data received" error message many users
2573   reported.
2574 - More reliable detection of prematurely closed client sockets
2575   with keep-alive enabled.
2576 - FEATURE_CONNECTION_KEEP_ALIVE is decoupled from
2577   FEATURE_CONNECTION_SHARING and now available on
2578   all platforms.
2579 - Improved handling of POST requests on reused connections.
2580   Should fix problems with stalled connections after submitting
2581   form data with some browser configurations.
2582 - Fixed various latency calculation issues.
2583 - Allows the client to pass NTLM authentication requests to a
2584   forwarding proxy. This was already assumed and hinted to work
2585   in 3.0.13 beta but actually didn't. Now it's confirmed to work
2586   with IE, Firefox and Chrome.
2587   Thanks to Francois Botha and Wan-Teh Chang
2588 - Fixed a calculation problem if receiving the server headers
2589   takes more than two reads, that could cause Privoxy to terminate
2590   the connection prematurely. Reported by Oliver.
2591 - Compiles again on platforms such as OpenBSD and systems
2592   using earlier glibc version that don't support AI_ADDRCONFIG.
2593   Anonymously submitted in #2872591.
2594 - A bunch of MS VC project files and Suse and Redhat RPM spec
2595   files have been removed as they were no longer maintained for
2596   quite some time.
2597 - Overly long action lines are properly rejected with a proper
2598   error message. Previously they would be either rejected as
2599   invalid or cause a core dump through abort().
2600 - Already timed-out connections are no longer temporarily remembered.
2601   They weren't reused anyway, but wasted a socket slot.
2602 - len refers to the number of bytes actually read which might
2603   differ from the ones received. Adjust log messages accordingly.
2604 - The optional JavaScript on the CGI page uses encodeURIComponent()
2605   instead of escape() which doesn't encode all characters that matter.
2606   Anonymously reported in #2832722.
2607 - Fix gcc45 warnings in decompress_iob().
2608 - Various log message improvements.
2609 - Privoxy-Regression-Test supports redirect tests.
2610 - Privoxy-Log-Parser can gather some connection statistics.
2611
2612 *** Version 3.0.14 beta ***
2613
2614 - The latency is taken into account when evaluating whether or not to
2615   reuse a connection. This should significantly reduce the number of
2616   connections problems several users reported.
2617 - If the server doesn't specify how long the connection stays alive,
2618   Privoxy errs on the safe side of caution and assumes it's only a second.
2619 - The error pages for connection timeouts or missing server data use a
2620   Last-Modified date in the past. Retry attempts are detected and Privoxy
2621   removes the If-Modified-Since header to prevent the server from responding
2622   with status code 304 in which case the client would reuse the error message.
2623 - Setting keep-alive-timeout to 0 disables keep-alive support. Previously
2624   Privoxy would claim to allow persistence but not reuse the connection.
2625 - Pipelined requests are less likely to be mistaken for the request
2626   body of the previous request. Note that Privoxy still has no real
2627   pipeline support and will either serialize pipelined requests or
2628   drop them in which case the client has to resent them.
2629 - Fixed a crash on some Windows versions when header randomization
2630   is enabled and the date couldn't be parsed.
2631 - Privoxy's keep-alive timeout for the current connection is reduced
2632   to the one specified in the client's Keep-Alive header.
2633 - For HTTP/1.1 requests, Privoxy implies keep-alive support by not
2634   setting any Connection header instead of using 'Connection: keep-alive'.
2635 - If the socket isn't reusable, Privoxy doesn't temporarily waste
2636   a socket slot to remember the connection.
2637 - If keep-alive support is disabled but compiled in, the client's
2638   Keep-Alive header is removed.
2639 - Fixed a bug on mingw32 where downloading large files failed if
2640   keep-alive support was enabled.
2641 - Fixed a bug that (at least theoretically) could cause log
2642   timestamps to be occasionally off by about a second.
2643 - No Proxy-Connection header if added if there already is one.
2644 - The configure script respects the $PATH variable when searching
2645   for groups and id.
2646
2647 *** Version 3.0.13 beta ***
2648
2649 - Added IPv6 support. Thanks to Petr Pisar who not only provided
2650   the initial patch but also helped a lot with the integration.
2651 - Added client-side keep-alive support.
2652 - The connection sharing code is only used if the connection-sharing
2653   option is enabled.
2654 - The max-client-connections option has been added to restrict
2655   the number of client connections below a value enforced by
2656   the operating system.
2657 - Fixed a regression reintroduced in 3.0.12 that could cause
2658   crashes on mingw32 if header date randomization was enabled.
2659 - Compressed content with extra fields couldn't be decompressed
2660   and would get passed to the client unfiltered. This problem
2661   has only be detected through statical analysis with clang as
2662   nobody seems to be using extra fields anyway.
2663 - If the server resets the Connection after sending only the headers
2664   Privoxy forwards what it got to the client. Previously Privoxy
2665   would deliver an error message instead.
2666 - Error messages in case of connection timeouts use the right
2667   HTTP status code.
2668 - If spawning a child to handle a request fails, the client
2669   gets an error message and Privoxy continues to listen for
2670   new requests right away.
2671 - The error messages in case of server-connection timeouts or
2672   prematurely closed server connections are now template-based.
2673 - If zlib support isn't compiled in, Privoxy no longer tries to
2674   filter compressed content unless explicitly asked to do so.
2675 - In case of connections that are denied based on ACL directives,
2676   the memory used for the client IP is no longer leaked.
2677 - Fixed another small memory leak if the client request times out
2678   while waiting for client headers other than the request line.
2679 - The client socket is kept open until the server socket has
2680   been marked as unused. This should increase the chances that
2681   the still-open connection will be reused for the client's next
2682   request to the same destination. Note that this only matters
2683   if connection-sharing is enabled.
2684 - A TODO list has been added to the source tarball to give potential
2685   volunteers a better idea of what the current goals are. Donations
2686   are still welcome too: https://www.privoxy.org/faq/general.html#DONATE
2687
2688 *** Version 3.0.12 ***
2689
2690 - The socket-timeout option now also works on platforms whose
2691   select() implementation modifies the timeout structure.
2692   Previously the timeout was triggered even if the connection
2693   didn't stall. Reported by cyberpatrol.
2694 - The Connection: keep-alive code properly deals with files
2695   larger than 2GB. Previously the connection was closed too
2696   early.
2697 - The content length for files above 2GB is logged correctly.
2698 - The user-manual directive on the show-status page links to
2699   the documentation location specified with the directive,
2700   not to the Privoxy website.
2701 - When running in daemon mode, Privoxy doesn't log anything
2702   to the console unless there are errors before the logfile
2703   has been opened.
2704 - The show-status page prints warnings about invalid directives
2705   on the same line as the directives themselves.
2706 - Fixed several justified (but harmless) compiler warnings,
2707   mostly on 64 bit platforms.
2708 - The mingw32 version explicitly requests the default charset
2709   to prevent display problems with some fonts available on more
2710   recent Windows versions. Patch by Burberry.
2711 - The mingw32 version uses the Privoxy icon in the alt-tab
2712   windows. Patch by Burberry.
2713 - The timestamp and the thread id is omitted in the "Fatal error"
2714   message box on mingw32.
2715 - Fixed two related mingw32-only buffer overflows. Triggering
2716   them required control over the configuration file, therefore
2717   this isn't seen as a security issue.
2718 - In verbose mode, or if the new option --show-skipped-tests
2719   is used, Privoxy-Regression-Test logs skipped tests and the
2720   skip reason.
2721
2722 *** Version 3.0.11 ***
2723
2724 - On most platforms, outgoing connections can be kept alive and
2725   reused if the server supports it. Whether or not this improves
2726   things depends on the connection.
2727 - When dropping privileges, membership in supplementary groups
2728   is given up as well. Not doing that can lead to Privoxy running
2729   with more rights than necessary and violates the principle of
2730   least privilege. Users of the --user option are advised to update.
2731   Thanks to Matthias Drochner for reporting the problem,
2732   providing the initial patch and testing the final version.
2733 - Passing invalid users or groups with the --user option
2734   didn't lead to program exit. Regression introduced in 3.0.7.
2735 - The match all section has been moved from default.action
2736   to a new file called match-all.action. As a result the
2737   default.action no longer needs to be touched by the user
2738   and can be safely overwritten by updates.
2739 - The standard.action file has been removed. Its content
2740   is now part of the default.action file.
2741 - In some situations the logged content length was slightly too low.
2742 - Crunched requests are logged with their own log level.
2743   If you used "debug 1" in the past, you'll probably want
2744   to additionally enable "debug 1024", otherwise only passed
2745   requests will be logged. If you only care about crunched
2746   requests, simply replace "debug 1" with "debug 1024".
2747 - The crunch reason has been moved to the beginning of the
2748   crunch message. For HTTP URLs, the protocol is logged as well.
2749 - Log messages are shortened by printing the thread id on its
2750   own (as opposed to putting it inside the string "Privoxy()").
2751 - The config option socket-timeout has been added to control
2752   the time Privoxy waits for data to arrive on a socket.
2753 - Support for remote toggling is controlled by the configure
2754   option --disable-toggle only. In previous versions it also
2755   depended on the action editor and thus configuring with the
2756   --disable-editor option would disable remote toggling support
2757   as well.
2758 - Requests with invalid HTTP versions are rejected.
2759 - The template symbol @date@ can be used to include a date(1)-like
2760   time string. Initial patch submitted by Endre Szabo.
2761 - Responses from shoutcast servers are accepted again.
2762   Problem reported and fix suggested by Stefan.
2763 - The hide-forwarded-for-headers action has been replaced with
2764   the change-x-forwarded-for{} action which can also be used to
2765   add X-Forwarded-For headers. The latter functionality already
2766   existed in Privoxy versions prior to 3.0.7 but has been removed
2767   as it was often used unintentionally (by not using the
2768   hide-forwarded-for-headers action).
2769 - A "clear log" view option was added to the mingw32 version
2770   to clear out all of the lines in the Privoxy log window.
2771   Based on a patch submitted by T Ford.
2772 - The mingw32 version uses "critical sections" now, which prevents
2773   log message corruption under load. As a side effect, the
2774   "no thread-safe PRNG" warning could be removed as well.
2775 - The mingw32 version's task bar icon is crossed out and
2776   the color changed to gray if Privoxy is toggled off.
2777
2778 *** Version 3.0.10 ***
2779
2780 - Ordinary configuration file changes no longer cause program
2781   termination on OS/2 if the name of the logfile hasn't been
2782   changed as well. This regression probably crept in with the
2783   logging improvements in 3.0.7. Reported by Maynard.
2784 - The img-reorder filter is less likely to mess up JavaScript code in
2785   img tags. Problem and solution reported by Glenn Washburn in #2014552.
2786 - The source tar ball now includes Privoxy-Log-Parser,
2787   a syntax-highlighter for Privoxy logs. For fancy screenshots see:
2788   http://www.fabiankeil.de/sourcecode/privoxy-log-parser/
2789   Documentation is available through perldoc(1).
2790
2791 *** Version 3.0.9 beta ***
2792
2793 - Added SOCKS5 support (with address resolution done by
2794   the SOCKS5 server). Patch provided by Eric M. Hopper.
2795 - The "blocked" CGI pages include a block reason that was
2796   provided as argument to the last-applying block action.
2797 - If enable-edit-actions is disabled (the default since 3.0.7 beta)
2798   the show-status page hides the edit buttons and explains why.
2799   Previously the user would get the "this feature has been disabled"
2800   message after using the edit button.
2801 - Forbidden CONNECT requests are treated like blocks by default.
2802   The now-pointless treat-forbidden-connects-like-blocks action
2803   has been removed.
2804 - Not enabling limit-connect now allows CONNECT requests to all ports.
2805   In previous versions it would only allow CONNECT requests to port 443.
2806   Use +limit-connect{443} if you think you need the old default behaviour.
2807 - The CGI editor gets turned off after three edit requests with invalid
2808   file modification timestamps. This makes life harder for attackers
2809   who can leverage browser bugs to send fake Referers and intend to
2810   brute-force edit URLs.
2811 - Action settings for multiple patterns in the same section are
2812   shared in memory. As a result these sections take up less space
2813   (and are loaded slightly faster). Problem reported by Franz Schwartau.
2814 - Linear white space in HTTP headers will be normalized to single
2815   spaces before parsing the header's content, headers split across
2816   multiple lines get merged first. This should prevent problems like:
2817    * letting the session-cookies-only action slip
2818      some Cookies through unmodified,
2819    * only suppressing the first line of a header,
2820      thus creating an invalid one, and
2821    * to incorrectly block headers with valid timestamps
2822      that weren't properly recognized.
2823   Headers that could trigger these problems are unlikely to appear
2824   in "normal" web traffic, but could be intentionally generated to
2825   fool some of Privoxy's header parsers.
2826 - Host information is gathered outside the main thread so it's less
2827   likely to delay other incoming connections if the host is misconfigured.
2828 - New config option "hostname" to use a hostname other than
2829   the one returned by the operating system. Useful to speed-up responses
2830   for CGI requests on misconfigured systems. Requested by Max Khon.
2831 - The CGI editor supports the "disable all filters of this type"
2832   directives "-client-header-filter", "-server-header-filter",
2833   "-client-header-tagger" and "-server-header-tagger".
2834 - Fixed false-positives with the link-by-url filter and URLs that
2835   contain the pattern "/jump/".
2836 - The less-download-windows filter no longer messes
2837   "Content-Type: application/x-shockwave-flash" headers up.
2838 - In the show-url-info page's "Final results" section active and
2839   inactive actions are listed separately. Patch provided by Lee.
2840 - The GNUmakefile supports the DESTDIR variable. Patch for
2841   the install target submitted by Radoslaw Zielinski.
2842 - Embedding the content of configuration files in the show-status
2843   page is significantly faster now. For a largish action file (1 MB)
2844   a speedup of about 2450 times has been measured. This is mostly
2845   interesting if you are using large action files or regularly use
2846   Privoxy-Regression-Test while running Privoxy through Valgrind,
2847   for stock configuration files it doesn't really matter.
2848 - If zlib support is unavailable and there are content
2849   filters active but the prevent-compression action is disabled,
2850   the show-url-info page includes a warning that compression
2851   might prevent filtering.
2852 - The show-url-info page provides an OpenSearch Description that
2853   allows to access the page through browser search plugins.
2854 - Custom client-header filters that rewrite the request line
2855   incorrectly no longer cause Privoxy to crash. Reported by din_a4.
2856 - The obsolete kill-popups action has been removed as the
2857   PCRS-based popup filters can do the same and are slightly
2858   less unreliable.
2859 - The inspect-jpegs action has been removed.
2860 - The send-wafer and send-vanilla-wafer actions have been removed.
2861   They weren't particular useful and their behaviour could be emulated
2862   with add-header anyway.
2863 - Privoxy-Regression-Test has been significantly improved.
2864 - Most sections in the default.action file contain tests for
2865   Privoxy-Regression-Test to verify that they are working as intended.
2866 - Parts of Privoxy have been refactored to increase maintainability.
2867 - Building with zlib (if available) is done by default.
2868
2869 *** Version 3.0.8 ***
2870
2871 - Fixed a small memory leak when listen-address only specifies the port.
2872 - The source tar balls now include Privoxy-Regression-Test which
2873   (upon other things) can be used to automatically detect some
2874   packaging problems. Packagers are welcome to give it a try.
2875 - Reverted a change in 3.0.7 that caused path patterns to be checked
2876   even if the host pattern match already failed. While this doesn't
2877   noticeable affect the performance, it makes it less likely to run
2878   out of stack space with overly-complex path patterns the user might
2879   have added.
2880 - Updated the msn, yahoo and google filters to work as advertised again.
2881 - The warning message shown by the show-status CGI page is easier to
2882   understand. Previously it wasn't clear that the error message
2883   is shown below the invalid directive. (Reported by Lee)
2884 - When regenerating Content-Disposition headers the more common
2885   spelling is used for the name. Previously it was written without caps.
2886 - Less confusing log message if the content type isn't overwritten
2887   because force-text-type wasn't used but the old type doesn't look
2888   like content that would be filtered normally.
2889 - Better log messages if the user tries to execute filters that
2890   don't exist.
2891 - Treat the non-standard Request-Range headers like standard range
2892   headers and suppress them if content filtering is enabled.
2893 - Prevent the log messages for CONNECT requests to unacceptable
2894   ports from printing the limit-connect argument as [null] if
2895   limit-connect hasn't been explicitly enabled.
2896 - Don't disable the mingw32 log window if the logfile directive
2897   isn't used. While it was an intentional change in 3.0.7 at least
2898   one user perceived it as a regression and the same effect can
2899   be achieved by disabling all debug directives.
2900 - Fixed two minor problems related to the win32 build process: a css
2901   file was not being in the installer and the trustfile comment in the
2902   config.txt referenced a nonexisting file
2903 - Minor documentation fixes.
2904
2905 *** Version 3.0.7 beta ***
2906
2907 - Added zlib support to filter content with gzip and deflate
2908   encoding. (Patch provided by Wil Mahan)
2909 - Dedicated filters and actions are used for header filtering.
2910   "filter-client-headers" and "filter-client-headers" are no longer
2911   supported, use server-header-filter{} and client-header-filter{}
2912   instead.
2913 - Tags can be used to change actions based on HTTP headers.
2914 - New server-header filter: less-download-windows.
2915 - New client-header taggers: css-requests, image-requests,
2916   client-ip-address, http-method, allow-post, complete-url,
2917   user-agent and privoxy-control.
2918 - New server-header taggers: content-type and privoxy-control.
2919 - The forward-override{} action allows to change the forwarding
2920   settings through the action files, for example based on client
2921   headers like the User-Agent, or the request origin.
2922 - Socks errors are no longer handled by the CGI page for
2923   DNS resolution failures.
2924 - CGI pages use favicons to signal whether they are error
2925   or control pages. This is useful if you rely heavily on
2926   browser tabs.
2927 - The show-url-info CGI page shows the forwarding settings.
2928 - "Crunch!" log messages (used when Privoxy answers requests
2929   by itself) now also contain the reason.
2930 - Allow to rewrite the request destination behind the client's back.
2931 - Fix socks requests on big-endian platforms. Patch provided by Song Weijia.
2932 - Fixes possible deadlocks and crashes on OpenBSD.
2933   Patch provided by Ralf Horstmann.
2934 - The CGI action editor allows to edit actionfiles with previously
2935   forbidden characters like dots.
2936 - New trust entries are saved with a comment that contains the
2937   trusted referring URL (Suggested by Daniel Griscom).
2938 - Filter descriptions are HTML encoded automatically.
2939 - New config option "split-large-forms" to work
2940   around a browser bug that caused IE6 and IE7 to ignore
2941   the Submit button on the edit-actions-for-url CGI page.
2942 - New config option "allow-cgi-request-crunching" to allow
2943   requests for Privoxy's CGI pages to be blocked, redirected
2944   or (un)trusted like ordinary requests.
2945 - Empty filter files no longer interrupt the filtering process
2946   prematurely and are correctly listed on the show-status CGI page.
2947 - New config option "accept-intercepted-requests" to combine
2948   Privoxy with any packet filter to build an intercepting proxy
2949   for HTTP/1.1 requests (and for HTTP/1.0 requests with Host header set).
2950 - fast-redirects{} catch redirects to https URLs as well.
2951 - redirect{s@foo@bar@} can be used to redirect to a rewritten
2952   version of the original URL.
2953 - Trap unsupported gopher proxy requests.
2954 - Fixed a bug in the User Manual delivery on Windows
2955   (mingw32 only). Images now show up correctly and HTML
2956   pages are no longer padded with garbage data.
2957 - Fixed several minor memory leaks, most of them discovered with Valgrind.
2958 - Only unlink the pidfile if it's actually used.
2959 - Retries after connection problems with forced requests
2960   aren't blocked again.
2961 - On Unix SIGABRT causes a core dump as expected and is no
2962   longer treated as normal shutdown signal.
2963 - The "access denied" CGI page is more descriptive and
2964   allows retries to circumvent the referrer check.
2965 - Updated PCRS to handle unexpected PCRE errors properly.
2966   Fixed crashes that could occur if Privoxy was build
2967   with external PCRE versions newer than Privoxy's internal
2968   one. (Reported by Chung-chieh Shan)
2969 - Fixed crashes with null bytes in PCRS replacement strings
2970   (Patch provided by Felix Gröbert).
2971 - Fixed crashes with header time randomization on mingw32.
2972 - The CGI style sheet is no longer delivered if the referring
2973   page isn't a Privoxy CGI page. This prevents a JavaScript-based
2974   Privoxy detection "attack". Note that detecting Privoxy is
2975   still possible through other ways and Privoxy was never intended
2976   to be invisible anyway.
2977 - Added support for AmigaOS 4, fixed build for AmigaOS 3.x.
2978 - The show-url-info CGI page displays a warning if Privoxy
2979   is currently toggled off.
2980 - The show-status CGI page suppresses the edit button
2981   for action files if Privoxy has no write access.
2982 - Most CGI error pages react properly to HEAD requests.
2983 - Requests with RFC 3253 HTTP methods (used by Subversion)
2984   are accepted. (Patch provided by Petr Kadlec)
2985 - New config option "templdir" to change the location
2986   of the CGI templates to make sure customized templates
2987   aren't "updated".
2988 - Better handling of "HTTP/1.1 100 Continue" responses.
2989 - The background of the PNG pattern is transparent.
2990 - Fixed XML syntax errors caused by banners-by-size and banners-by-url.
2991 - Fixed crashes and possible action file corruptions
2992   when lines containing hashes are written through the CGI editor.
2993 - Supports dynamic filters which can contain variables.
2994 - Supports tags to change the actions based on client or server headers.
2995 - Incorrect actions are logged before program termination.
2996 - The "actionsfile" syntax in the configuration file is consistent
2997   with the rest of the configuration options and requires the
2998   whole file name. This is an incompatible change, if you use
2999   an old configuration file you might have to append ".action"
3000   to your "actionsfile" directives.
3001 - With the configuration file option "enforce-blocks" the
3002   "go there anyway" mechanism can be disabled without recompiling
3003   Privoxy.
3004 - More precise error messages in case of incorrect acl syntax.
3005 - Logs a warning if filtering is enabled but impossible due
3006   to lack of zlib support or use of the prevent-compression action.
3007 - Less noisy handling of Cookie:" and "Connection:" headers.
3008 - Improved error messages in case of connection problems.
3009 - Fix a command-line-parsing bug that was introduced before 3.0.5
3010   beta and caused Privoxy to treat the last argument as configuration
3011   file if no configuration file was specified.
3012 - Treat unknown command line options as fatal errors instead
3013   of silently ignoring them.
3014 - Use string functions with length checks more often.
3015 - Don't log CONNECT requests twice.
3016 - Allow to log the source address for ACL-related connection drops.
3017 - Don't ignore applying filters if the server didn't
3018   specify a Content-Type. Bug reported by Amuro Namie.
3019 - Rejected CONNECT requests are logged with log level info
3020   (enabled by default) and the reason for the block.
3021 - New command line option "--pre-chroot-nslookup hostname" to
3022   intialize the resolver library before chroot'ing. On some systems this
3023   reduces the number of files that must be copied into the chroot tree.
3024   (Patch provided by Stephen Gildea)
3025 - Fix a long-standing memory corruption bug that could cause
3026   Privoxy to overwrite a single byte in memory it didn't explicitly
3027   allocate (but that probably was allocated anyway due to bucket size).
3028 - Send template-based CGI pages as HTTP/1.1 unless the client
3029   asked for HTTP/1.0.
3030 - Let the first line in connection established responses
3031   end in \r\n as required by RFC1945. Reported by Bert van Leeuwen.
3032 - If no log file has been specified, disable logging instead of logging
3033   to stderr.
3034 - Don't block stderr when in daemon mode.
3035 - Ignore missing zero-chunks when filtering chunk-encoded content.
3036   Earlier Privoxy versions would buffer and then forward the content
3037   unmodified which caused some browsers to simply show empty pages.
3038 - Fix double free in cgi_edit_actions_list(). Reported by Venustech AD-LAB.
3039 - The code to add X-Forwarded-For headers when the hide-forwarded-for-headers
3040   action isn't being used has been removed.
3041 - Fixed trustfile feature which previously didn't work without FEATURE_TOGGLE.
3042   Reported by Lee.
3043 - Minor code clean-ups, filter and action file updates.
3044   (Some of them reported by Davide Alberani, Markus Elfring,
3045    Stefan Huehner and Adam Piggott)
3046
3047 *** Version 3.0.6 ***
3048
3049 - New content filters: no-ping, google, msn, yahoo and blogspot.
3050 - New header filters:  x-httpd-php-to-html, html-to-xml, xml-to-html
3051                        and hide-tor-exit-notation.
3052 - The special header "X-Filter: No" now disables header filtering as well.
3053 - Improved the filters img-reorder, js-annoyances, webbugs,
3054   banners-by-size, banners-by-link and ie-exploits to make them
3055   less likely to break anything.
3056 - Removed outdated URL patterns in default.action and added new ones.
3057 - Added redirection from http://p.p/user-manual to http://p.p/user-manual/
3058 - Changed webinterface default values for hide-user-agent, hide-referrer
3059   and set-image-blocker.
3060
3061 *** Version 3.0.5 beta ***
3062
3063 - Windows version can be installed/started as a service.
3064 - Windows icon stays blue when Privoxy is idle, green when busy.
3065 - Integrated Fabian Keil's extensive patch.  See:
3066   http://www.fabiankeil.de/sourcecode/privoxy/. Includes the
3067   following new or significantly improved actions (among many
3068   other improvements):
3069
3070      content-type-overwrite{}
3071      crunch-client-header{string}
3072      crunch-if-none-match
3073      crunch-server-header{string}
3074      fast-redirects{check-decoded-url}
3075      filter-client-headers
3076      filter-server-headers
3077      force-text-mode
3078      handle-as-empty-document
3079      hide-accept-language{}
3080      hide-content-disposition{}
3081      hide-if-modified-since
3082      hide-referrer{conditional-block}
3083      overwrite-last-modified{}
3084      redirect{URL}
3085      treat-forbidden-connects-like-blocks
3086
3087 - Standard-compliant clients are prevented from displaying cached
3088   copies of Privoxy's error messages after the cause of the problem
3089   has gone.
3090 - Improved DNS error handling.
3091 - Multiple filter files can now be specified in config.
3092 - Added jpeg filtering to defend against MS jpeg vulnerability MS04-028
3093   with the new inspect-jpegs action.
3094 - Removed the "arbitrary" 1000 filter limit - addresses tracker #911950
3095 - Thanks to Jindrich Makovicka for a race condition fix for the log
3096   file.  The race condition remains for non-pthread implementations.
3097   Reference patch #1175720. Various other logging enhancements.
3098 - A pile of assorted bug fixes, memory leaks, enhancements, etc.
3099 - Moved Actions file reporting mechanism to SF tracker.
3100 - Two new options for config: enable-remote-http-toggle and
3101   forwarded-connect-retries.
3102 - Trap unsupported FTP requests.
3103 - Let text/xml be filtered.
3104 - Numerous updates to default.action
3105 - Increase the compiled in limit of trusted referrers from 64 to 512
3106   (for trustfile users).
3107
3108 *** Version 3.0.3 ***
3109
3110 - Fixed yet another two memory leaks. Process growth seems stopped now.
3111 - Further tightened security against malicious toggle-off links.
3112 - Excluded text/plain MIME types from filtering. This fixes a
3113   couple of client-crashing, download corruption and
3114   Privoxy performance issues, whose root cause lies in
3115   web servers labelling content of unknown type as text/plain.
3116 - Assorted fixes for POSIX compliance, signal handling, graceful
3117   termination, compiler warnings, OSX support, Win32 systray,
3118   error logging, hostname wildcards, correct detection of NetBSD.
3119 - Workarounds for client (iTunes etc) and server (PHP < 4.2.3) bugs
3120   including the notorious "blank page" problem.
3121 - Various filter improvements; most notably the unsolicited-popups
3122   filter became less destructive
3123 - Major revamp of the actions file
3124
3125 *** Version 3.0.2 ***
3126
3127 - Fixed two memory leaks, one serious
3128 - Fixed bug in pcrs which could cause crashes with user-defined filters
3129 - Fixed bug in domain name matching
3130 - Assorted small fixes (Win32 menu, CGI URL editor, ..)
3131 - Added basic support for the OPTIONS and TRACE http methods
3132 - Added workaround for Bug in Mac OSX that made Privoxy crash occasionally
3133 - Refined the default action file through >400 items of user feedback
3134 - Filter changes:
3135   - Assorted refinements, optimizations and fixes in the js-annoyances,
3136     img-reorder, banners-by-size, banners-by-link, webbugs, refresh-tags,
3137     html-annoyances, content-cookies and fun filters
3138   - Replaced filter "popups" by choice between two modes:
3139     - "unsolicited-popups" tries to catch only the unsolicited ones
3140     - "all-popups" tries to kill them all (as before)
3141   - New filter "tiny-textforms" Help those tiny or hard-wrap textareas.
3142   - New filter "jumping-windows" that prevents windows from resizing
3143     and moving themselves
3144   - New filter "demoronizer" which fixes MS's abuse of std charsets
3145     (common cases anyway).
3146   - Replaced "nimda" with more general "ie-exploits" filter in which
3147     all filters for exploits shall be collected
3148 - Improved cookie logging
3149 - Rewrote make install target. Added uninstall and install-strip
3150   targets.
3151 - Fixed a potential (application-level, NOT OS-level!) security
3152   problem involving remote toggling and action file manipulation
3153   by mailicious websites.
3154 - Added ability to chroot (thanks to Sviatoslav Sviridov)
3155 - Added more action aliases for prehistoric action names
3156 - Add Slackware support to Makefile.
3157
3158 *** Version 3.0  ***
3159
3160 - Fixed Windows startmenu items, log window and tray icon menus.
3161 - Added warning for bogus install target
3162 - Added quicktime-kioskmode filter and improved frameset-borders
3163 - Updated default.action based on latest feedback
3164 - New PDF doc build process
3165 - Add a user contrib module to cvs:
3166   http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/ijbswa/contrib/
3167
3168 *** Version 2.9.18  ***
3169
3170 - Added workaround for IE bug that broke CGI interface
3171 - Bugfix: String actions now reliably editable through CGI interface
3172 - Three filters fixed (again!)
3173 - Assorted small fixes and doc enhancements
3174
3175 *** Version 2.9.16  ***
3176
3177 - Major revamp of default.action to get rid of years of cruft.
3178 - Same for default.filter
3179 - Re-design and major improvements to the CGI editor interface.
3180 - Address spurious 'out of memory' error due to incorrect file permissions.
3181 - Impose buffer limits while reading client and server headers.
3182 - Better memory and CPU optimization.
3183 - Add Conectiva Linux package.
3184 - user-manual directive added to config for help links from within CGI
3185   editor.
3186 - Multiple actions files can now be specified in config.
3187 - Actions files are changed to: default.action, standard.action, and
3188   user.action. user.action is for personal/local configuration.
3189 - The usual many small and miscellaneous bug and security fixes.
3190
3191 *** Version 2.9.14 beta ***
3192
3193 - Fix Solaris compile problem (gateway.h and filters.h)
3194 - Makefile fixes for Solaris, FreeBSD (?)
3195 - Fix build failure where certain features were disabled.
3196 - 'blocked-compact' template is removed. Various CGI improvements,
3197   including an adaptive 'blocked' template.
3198 - Various tweaks for actions file to get ready for stable 3.0
3199 - Included a 'Bookmarklet' and PHP scripts for reporting actions file
3200   problems via web interface at privoxy.org. Accessed via internal CGIs.
3201 - Include cgi-style.css for templates.
3202 - #include mechansim for common text in templates
3203 - Various other minor fixes.
3204
3205 *** Version 2.9.13 beta ***
3206
3207 - *NEWS*: The project has been renamed to Privoxy! The new name is
3208   reflected throughout (file locations, etc).
3209 - ijb.action is now default.action. re_filterfile is now
3210   default.filter.
3211 - http://i.j.b/ is now http://p.p/
3212 - The 'logo' option for replacing ad iamges is removed now. 'Pattern'
3213   (checkerboard) is now the default.
3214 - RPM spec file make over.
3215
3216
3217 *** Version 2.9.12 beta ***
3218
3219 - **READ**: The default listening PORT is NOW 8118!!! Changed from
3220   8000 due to conflict with NAS (Network Audio Server, whatever that
3221   is.)
3222 - More CGI actions editor fixes and improvements.
3223 - Win32 command line fix ups.
3224 - re_filterfile now has modular sections that can be activated on a
3225   per site basis. Some new goodies there too.
3226 - +filter now takes arguments to match FILTER sections in re_filterfile
3227   for even more flexibility.
3228 - Added a new image blocker option: +image-blocker{pattern}, which
3229   displays a checkerboard patthern and scales better than the logo.
3230 - PNG images will be used in place of GIF for JB built-in images
3231   if configured with --enable-no-gif.
3232 - Clean up compiler warnings (mostly).
3233 - Improved handling of failed DNS lookups & diagnostics for failed bind
3234   to listen socket
3235 - Made --no-daemon mode log to tty instead of logfile.
3236 - Various spec file and init script cleanups and improvements (Redhat and
3237   SuSE).
3238 - CGI Editor works on OS/2 now.
3239 - Fix restart failure where sockets were in TIME_WAIT.
3240 - Fixes for actions cgi editor, make sure we have right file.
3241 - A --pidfile command line option now, in addition to --help,
3242   --version, --no-daemon, --user and configfile. --no-daemon replaces
3243   the former -d option and _DEBUG define. --user will drop privileges
3244   to the specified user.
3245 - Signal handling cleanups (*nix).
3246 - CGI actions editor improvements and fixes.
3247 - Error handling improvements, especially out of memory.
3248 - Default re_filterfile fix that caused spurious IJB logos
3249   (instead of 'blank').
3250 - configure.in threading fixes for Solaris.
3251 - Various other minor fixes.
3252
3253
3254 *** Version 2.9.11 beta Changes ***
3255
3256 - Add "session" cookie concept where cookies exist for the life
3257   of that browser session only (ie never goes to disk).
3258 - Checks for correct header length.
3259 - Fix user:pass@host.domain.com auth bug.
3260 - Better signal handling on *nix.
3261 - Fix CFLAGS hard-coded in configure.in
3262 - Fix threading bug re: gethostbyname() that caused random
3263   URLs to fail in some cases.
3264
3265
3266 *** Version 2.9.11 Alpha Changes ***
3267
3268 - A web-based editor for the actions file is included (go to http://i.j.b/).
3269 - Web-based toggle IJB on/off support.
3270 - Cookie handling has changed - the new +no-cookies-keep feature is now the
3271 default.
3272 - actionsfile is renamed to ijb.action.
3273 - junkbstr.txt is now config.txt on Win32.
3274 - Support for running IJB as a UNIX daemon process has improved.
3275 - Unix daemon now returns error code on failed start.
3276 - Timestamps in logfile and jarfile now.
3277 - Fix for the Netscape bug reintroduced in 2.9.9.
3278 - make should now abort if gmake (GNU make) not present.
3279 - Many other minor bugfixes
3280 - Start a ChangeLog :)
3281
3282
3283
3284 *** Version 2.9.3 pre-Alpha Changes ***
3285
3286 - Amiga support (completely untested by me - I don't have an Amiga)
3287 - "tinygif 3" support (redirects blocked images to a specified URL, so
3288 the browser doesn't have to load and cache many copies of the same
3289 image).
3290 - one case where there were both local and global "referrer" variables
3291 (yuck!) clarified by renaming the local one to "refer".
3292 - Fixed some places where close() was used instead of close_socket().
3293 Thanks to Jörg Strohmayer (joergs at users.sourceforge.net) for these.
3294 - Temporary hack to get FORCE_LOAD to work with IE.  I just lowercased the
3295 FORCE_LOAD_PREFIX.  Needs fixing properly.
3296 - Most URLs hardcoded into Junkbuster were changed to go through a script
3297 e.g. http://ijbswa.sourceforge.net/redirect.php?v=2.9.3&to=faq
3298 The only other URLs left are the GNU GPL:
3299   http://www.fsf.org/copyleft/gpl.html
3300 and the home page:
3301   http://ijbswa.sourceforge.net/
3302 ... and various URLs which will be intercepted by Junkbuster anyway.
3303 TODO: Still need to do something with the URLs in Junkbuster Corp's
3304 copyright/trademark notice on the bottom of the show-proxy-args page.
3305 - PCRE or GNU Regex is now a #define option.
3306
3307
3308 *** Version 2.9.2 pre-Alpha Changes ***
3309
3310 - Andreas applied the latest version of the FORCE patch.
3311
3312
3313 *** Version 2.9.1 pre-Alpha Changes ***
3314
3315 - in parsers.c, fixed two #ifdef FORCE to #ifdef FORCE_LOAD
3316 (BTW: I think FORCE is precise enough, since loading remote
3317 data is the whole purpose of a proxy..)
3318 - Set the FORCE_PREFIX (back) to 'IJB-FORCE-LOAD-'. While 'noijb.'
3319 is more elegant and looks like a hostname in the URL, it doesn't
3320 make clear to the inexperienced user that the proxy is bypassed. It
3321 also has a higher name collision risk.
3322 - Filled in the function header templates for my functions in
3323 parsers.c (again). They obviously got lost in our current
3324 patch war ;-)
3325 - Cut the credit for the §-referrer-option from the config file,
3326 that Stefan had placed there.
3327 - Improved the re_filterfile
3328
3329
3330 *** Version 2.9.0 pre-Alpha Changes ***
3331
3332 -  Now use PCRE, not GNU REGEX.  I have not yet had chance to check the
3333 syntax of the block/image/cookie file to ensure that they match what
3334 is expected - however they seem to work.
3335 -  Replaced "configure" script with one generated by "autoconf".  Also
3336 use a header "config.h" (was ijbconfig.h in my previous release) for
3337 the #defines.  "config.h" is now generated with "autoheader" from
3338 "acconfig.h" and "configure.in".  (Note that to install you do not
3339 need autoconf or autoheader - just run "./configure".)
3340 To see command-line options, run "./configure --help".
3341 This is my first ever autoconf script, so it has some rough edges
3342 (how PCRE is handled is the roughest).
3343 -  Error logging code replaced with new module errlog.c, based on the
3344 one from JunkbusterMT (but with the threading code removed).
3345 -  Most of Rodney's 0.21 and 0.21A patches applied. (Marked *).  I did not
3346 apply all of these, since I had already independently done conditional
3347 popup file, conditional image file, and integration of popup code.
3348 - ACL, Jar and trust files conditionally compiled.
3349 - New source file headers.
3350 - Various cosmetic changes.  (But I have not consistently ordered the
3351 config files - I think that's worthwhile, but it's 1am and I want to
3352 get this released!)
3353 - RCS tags on .h files.
3354 -  RCS tags are const char[] rather than const char *.  (Saves 4 bytes
3355 per tag ;-)
3356 - VC++ project files renamed to vc_junkbuster.*.
3357 - show-proxy-args now shows status of all conditionals, not just REGEX
3358 - Various functions moved around.  Most notably all the system-specific
3359 sockets code which was spread between jcc.c, bind.c, and connect.c,
3360 has been moved to "jbsockets.c".  The non-system-specific code from
3361 connect.c and socks4.c has been movet to "gateway.c".  Also, the
3362 config file loader and the global variables it writes to have been
3363 moved to "loadcfg.c".  (Maybe this should go into loaders.c?)
3364 And candidate for the "worst filename ever" award is "miscutil.c",
3365 which contains, well, miscellaneous utility functions like zalloc.
3366 (Suggestions for a better name for this file are welcome!)
3367 - Loaders now use a common function to read a line and skip comments,
3368 and this function also stores the proxy_args.
3369 - Added ./junkbuster --help     (Not for Win32 GUI)
3370 - Added ./junkbuster --version  (Not for Win32 GUI)
3371 - Win32 resources are now all marked as "U.S. English", rather than
3372 being a mix of "U.S. English", "U.K. English" and "Irish English".
3373 - Version number changes to 2.9.0
3374
3375
3376 ----------------------------------------------------------------------
3377 Copyright   :  Written by and Copyright (C) 2001-2021 the
3378                Privoxy team. https://www.privoxy.org/
3379
3380                Based on the Internet Junkbuster originally written
3381                by and Copyright (C) 1997 Anonymous Coders and
3382                Junkbusters Corporation.  http://www.junkbusters.com/
3383
3384                This program is free software; you can redistribute it
3385                and/or modify it under the terms of the GNU General
3386                Public License as published by the Free Software
3387                Foundation; either version 2 of the License, or (at
3388                your option) any later version.
3389
3390                This program is distributed in the hope that it will
3391                be useful, but WITHOUT ANY WARRANTY; without even the
3392                implied warranty of MERCHANTABILITY or FITNESS FOR A
3393                PARTICULAR PURPOSE.  See the GNU General Public
3394                License for more details.
3395
3396                The GNU General Public License should be included with
3397                this file.  If not, you can view it at
3398                http://www.gnu.org/copyleft/gpl.html
3399                or write to the Free Software Foundation, Inc., 59
3400                Temple Place - Suite 330, Boston, MA  02111-1307, USA.