Update all patches to new version.
39_show-status and 40_redirect-ssl are now incorporated upstream.
+privoxy (3.0.30~git-snapshot-1) UNRELEASED; urgency=medium
+
+ * Git Snapshot.
+ * Update all patches to new version.
+ * 39_show-status and 40_redirect-ssl are now incorporated upstream.
+
+ -- Roland Rosenfeld <roland@debian.org> Sun, 17 Jan 2021 15:15:58 +0100
+
privoxy (3.0.29-2) unstable; urgency=medium
* Use --enable-extended-statistics and --enable-pcre-host-patterns.
#
# 2.5. actionsfile
# =================
-@@ -2479,7 +2479,7 @@ socket-timeout 300
+@@ -2467,7 +2467,7 @@ socket-timeout 300
#
# ca-directory /usr/local/etc/privoxy/CA
#
#
# 7.2. ca-cert-file
# ==================
-@@ -2633,7 +2633,7 @@ socket-timeout 300
+@@ -2624,7 +2624,7 @@ socket-timeout 300
#
# certificate-directory /usr/local/var/privoxy/certs
#
#
# 7.6. cipher-list
# =================
-@@ -2764,7 +2764,7 @@ socket-timeout 300
+@@ -2756,7 +2756,7 @@ socket-timeout 300
#
# trusted-cas-file trusted_cas_file.pem
#
--- a/configure.in
+++ b/configure.in
-@@ -508,7 +508,7 @@ dnl gmtime and localtime
+@@ -507,7 +507,7 @@ dnl gmtime and localtime
dnl =================================================================
dnl Next line needed to find the gethost*_r functions on Solaris
--- a/GNUmakefile.in
+++ b/GNUmakefile.in
-@@ -544,8 +544,7 @@ man: dok-release
+@@ -546,8 +546,7 @@ man: dok-release
perl -pi.bak -e "s/\[ /\[/g;s/á/\\\\['a]/g;s/é/\\\\['e]/g" $(MAN_PAGE); \
perl -pi.bak -e "s/ö/\\\\[:o]/g" $(MAN_PAGE); \
perl -pi.bak -e 's/([ {])-([a-z])/$$1\\-$$2/g' $(MAN_PAGE); \
--- a/GNUmakefile.in
+++ b/GNUmakefile.in
-@@ -539,7 +539,7 @@ dok-man:
+@@ -541,7 +541,7 @@ dok-man:
# target for man page generation!
man: dok-release
mkdir -p doc/source/temp && cd doc/source/temp && $(RM) * ;\
--- a/tools/privoxy-log-parser.pl
+++ b/tools/privoxy-log-parser.pl
-@@ -2753,7 +2753,7 @@ It does not escape any input!
+@@ -2793,7 +2793,7 @@ It does not escape any input!
[B<--keep-date>] Don't remove the date when printing highlighted log messages.
Useful when parsing multiple log files at once.
+++ /dev/null
-From: Roland Rosenfeld <roland@debian.org>
-Subject: Add new features to show-status page.
-Date: Sun, 06 Dec 2020 14:14:43 +0100
-Forwarded: https://www.privoxy.org/gitweb/?p=privoxy.git;a=patch;h=d83b7ce5
-
---- a/templates/show-status
-+++ b/templates/show-status
-@@ -299,6 +299,19 @@
- </td>
- </tr>
- <tr>
-+ <td><code>FEATURE_DYNAMIC_PCRE</code></td>
-+ <td>@if-FEATURE_DYNAMIC_PCRE-then@ Yes @else-not-FEATURE_DYNAMIC_PCRE@ No @endif-FEATURE_DYNAMIC_PCRE@</td>
-+ <td>Dynamically link to the PCRE library. This is set automatically
-+ by <code>./configure</code> if you do not have libpcre installed.
-+ Dynamically linking to an external libpcre is recommended as the one that is distributed
-+ with Privoxy itself is outdated and lacks various features and bug-fixes you may be interested in.</td>
-+ </tr>
-+ <tr>
-+ <td><code>FEATURE_EXTENDED_STATISTICS</code></td>
-+ <td>@if-FEATURE_EXTENDED_STATISTICS-then@ Yes @else-not-FEATURE_EXTENDED_STATISTICS@ No @endif-FEATURE_EXTENDED_STATISTICS@</td>
-+ <td>Gather statistics for block reasons and filter executions.</td>
-+ </tr>
-+ <tr>
- <td><code>FEATURE_EXTERNAL_FILTERS</code></td>
- <td>@if-FEATURE_EXTERNAL_FILTERS-then@ Yes @else-not-FEATURE_EXTERNAL_FILTERS@ No @endif-FEATURE_EXTERNAL_FILTERS@</td>
- <td>
-@@ -308,14 +321,6 @@
- </td>
- </tr>
- <tr>
-- <td><code>FEATURE_DYNAMIC_PCRE</code></td>
-- <td>@if-FEATURE_DYNAMIC_PCRE-then@ Yes @else-not-FEATURE_DYNAMIC_PCRE@ No @endif-FEATURE_DYNAMIC_PCRE@</td>
-- <td>Dynamically link to the PCRE library. This is set automatically
-- by <code>./configure</code> if you do not have libpcre installed.
-- Dynamically linking to an external libpcre is recommended as the one that is distributed
-- with Privoxy itself is outdated and lacks various features and bug-fixes you may be interested in.</td>
-- </tr>
-- <tr>
- <td><code>FEATURE_FAST_REDIRECTS</code></td>
- <td>@if-FEATURE_FAST_REDIRECTS-then@ Yes @else-not-FEATURE_FAST_REDIRECTS@ No @endif-FEATURE_FAST_REDIRECTS@</td>
- <td>Allows the +fast-redirects action, to bypass redirect and logging scripts.</td>
-@@ -353,6 +358,14 @@
- </td>
- </tr>
- <tr>
-+ <td><code>FEATURE_PCRE_HOST_PATTERNS</code></td>
-+ <td>@if-FEATURE_PCRE_HOST_PATTERNS-then@ Yes @else-not-FEATURE_PCRE_HOST_PATTERNS@ No @endif-FEATURE_PCRE_HOST_PATTERNS@</td>
-+ <td>Allow to use extended host patterns and vanilla host patterns
-+ at the same time by prefixing extended host patterns with
-+ "PCRE-HOST-PATTERN:".
-+ </td>
-+ </tr>
-+ <tr>
- <td><code>FEATURE_NO_GIFS</code></td>
- <td>@if-FEATURE_NO_GIFS-then@ Yes @else-not-FEATURE_NO_GIFS@ No @endif-FEATURE_NO_GIFS@</td>
- <td>Use PNG instead of GIF for the built-in images.</td>
---- a/cgisimple.c
-+++ b/cgisimple.c
-@@ -2097,6 +2097,22 @@ static jb_err show_defines(struct map *e
- #else
- 0,
- #endif
-+ },
-+ {
-+ "FEATURE_EXTENDED_STATISTICS",
-+#ifdef FEATURE_EXTENDED_STATISTICS
-+ 1,
-+#else
-+ 0,
-+#endif
-+ },
-+ {
-+ "FEATURE_PCRE_HOST_PATTERNS",
-+#ifdef FEATURE_PCRE_HOST_PATTERNS
-+ 1,
-+#else
-+ 0,
-+#endif
- }
- };
-
+++ /dev/null
-Origin: https://www.privoxy.org/gitweb/?p=privoxy.git;h=89da1910
-Author: Fabian Keil <fk@fabiankeil.de>
-Date: Tue Dec 15 19:00:00 2020 +0100
-Bug: https://sourceforge.net/p/ijbswa/support-requests/1736/
-Forwarded: not needed, comes from upstream
-Subject: Check the actual URL when https inspecting requests
- redirect_url(): Check the actual URL when https inspecting requests
-
- Previously we would only check the path which resulted
- in rewrite results being rejected as invalid URLs.
-
- Before:
- 19:37:29.494 014 Error: pcrs command "s@/test@/@" changed "/test" to "/" (1 hit), but the result doesn't look like a valid URL and will be ignored.
-
- After:
- 19:40:57.857 002 Redirect: pcrs command s@/test@/@ changed https://www.electrobsd.org/test to https://www.electrobsd.org/ (1 hit).
-
- Reported by withoutname in #1736.
-
---- a/filters.c
-+++ b/filters.c
-@@ -66,6 +66,9 @@
- #ifdef FEATURE_CLIENT_TAGS
- #include "client-tags.h"
- #endif
-+#ifdef FEATURE_HTTPS_INSPECTION
-+#include "ssl.h"
-+#endif
-
- #ifdef _WIN32
- #include "win32.h"
-@@ -1220,8 +1223,33 @@ struct http_response *redirect_url(struc
-
- if (*redirection_string == 's')
- {
-- old_url = csp->http->url;
-+#ifdef FEATURE_HTTPS_INSPECTION
-+ if (client_use_ssl(csp))
-+ {
-+ jb_err err;
-+
-+ old_url = strdup_or_die("https://");
-+ err = string_append(&old_url, csp->http->hostport);
-+ if (!err) err = string_append(&old_url, csp->http->path);
-+ if (err)
-+ {
-+ log_error(LOG_LEVEL_FATAL,
-+ "Failed to rebuild URL 'https://%s%s'",
-+ csp->http->hostport, csp->http->path);
-+ }
-+ }
-+ else
-+#endif
-+ {
-+ old_url = csp->http->url;
-+ }
- new_url = rewrite_url(old_url, redirection_string);
-+#ifdef FEATURE_HTTPS_INSPECTION
-+ if (client_use_ssl(csp))
-+ {
-+ freez(old_url);
-+ }
-+#endif
- }
- else
- {
33_manpage_hyphen.patch
34_system-docbook2man.patch
35_man-spelling.patch
-39_show-status.patch
-40_redirect-ssl.patch