From git at git.privoxy.org Thu Oct 9 11:51:22 2025 From: git at git.privoxy.org (User Git) Date: Thu, 09 Oct 2025 11:51:22 +0200 Subject: [Privoxy-commits] [privoxy] branch master updated (9de37941 -> dea56ef3) Message-ID: <176000348289.70512.16562646801924793992@privoxy-git> This is an automated email from the git hooks/post-receive script. git pushed a change to branch master in repository privoxy. from 9de37941 Regenerate homepage with new vanity onion service address new a2af69c6 accept_connection(): Fix memory and socket leak new 5d4dcc9f log_error(): Fix segmentation fault new 385858ba error_response(): Prevent a theoretical memory leak new 95d78480 client_host_adder(): Remove stray space new b73d65ea socks4_connect(): Fix the dstsize passed to strlcpy() in case of socks4a new 4a9d9b5c client_host(): Properly handle IPv6 addresses new 9d366482 get_destination_from_headers(): Properly handle IPv6 addresses new 97316c79 get_destination_from_https_headers(): Properly handle IPv6 addresses new 8ef5ce25 Let get_destination_from_headers() handle the https case as well to reduce code duplication new bceabadc privoxy-log-parser: Highlight: Socket 8 timed out while waiting for client headers new b8459b45 Widen block pattern from 'metrics.' to '.metricts.' new 15c1b86a tests/cts: Remove 'none' server section from tests new 9c19aad7 Disable the forward-to-socks-proxy and forward-to-http-proxy scenarios for now new b5727fa9 tests/cts: Add 'DISABLED' files to the data directories new b541a44f gen-skip-reasons.pl: Skip tests with non-standard 'Connection: mooo' headers new dea56ef3 Regenerate curl-test-manifest-for-privoxy The 16 revisions listed above as "new" are entirely new to this repository and will be described in separate emails. The revisions listed as "add" were already present in the repository and have only been added to this reference. Summary of changes: cgi.c | 2 +- default.action.master | 3 +- errlog.c | 2 +- gateway.c | 2 +- jbsockets.c | 3 + jcc.c | 4 +- parsers.c | 163 +++++++++------------ parsers.h | 5 +- tests/cts/acl-ip-address-permitted/data/DISABLED | 1 + tests/cts/blocked-https-requests/data/DISABLED | 1 + .../chunked-transfer-encoding-https/data/DISABLED | 1 + tests/cts/chunked-transfer-encoding/data/DISABLED | 1 + tests/cts/client-body-filter-https/data/DISABLED | 1 + tests/cts/client-body-filter/data/DISABLED | 1 + tests/cts/client-body-tagger-https/data/DISABLED | 1 + tests/cts/client-body-tagger/data/DISABLED | 1 + tests/cts/client-header-order-https/data/DISABLED | 1 + tests/cts/client-header-order/data/DISABLED | 1 + tests/cts/client-tags/data/DISABLED | 1 + tests/cts/client-tags/data/test1 | 3 - tests/cts/client-tags/data/test7 | 3 - .../data/DISABLED | 1 + tests/cts/content-filters/data/DISABLED | 1 + tests/cts/curl-test-manifest-for-privoxy | 1 + tests/cts/forward-to-http-proxy/data/DISABLED | 1 + .../{privoxy.conf => privoxy.conf.disabled} | 0 tests/cts/forward-to-socks-proxy/data/DISABLED | 1 + .../{privoxy.conf => privoxy.conf.disabled} | 0 tests/cts/gen-skip-reasons.pl | 5 + tests/cts/gif-deanimation/data/DISABLED | 1 + tests/cts/gzip-compression/data/DISABLED | 1 + tests/cts/header-filters/data/DISABLED | 1 + tests/cts/pac-file-delivery/data/DISABLED | 1 + tests/cts/pac-file-delivery/data/test1 | 3 - tests/cts/redirects-https/data/DISABLED | 1 + tests/cts/redirects-https/data/test1 | 3 - tests/cts/redirects-https/data/test2 | 3 - tests/cts/redirects-https/data/test3 | 3 - tests/cts/redirects-https/data/test4 | 3 - tests/cts/redirects-https/data/test5 | 3 - tests/cts/redirects/data/DISABLED | 1 + tests/cts/redirects/data/test1 | 3 - tests/cts/redirects/data/test2 | 3 - tests/cts/redirects/data/test3 | 3 - tests/cts/redirects/data/test4 | 3 - .../rewrite-behind-client-back-https/data/DISABLED | 1 + .../rewrite-behind-client-back-https/data/test5 | 3 - tests/cts/rewrite-behind-client-back/data/DISABLED | 1 + tests/cts/rewrite-behind-client-back/data/test1 | 3 - tests/cts/rewrite-behind-client-back/data/test5 | 3 - tests/cts/user-manual-http/data/DISABLED | 1 + tests/cts/user-manual-http/data/test1 | 3 - tests/cts/user-manual-https/data/DISABLED | 1 + tests/cts/user-manual-https/data/test1 | 3 - tools/privoxy-log-parser.pl | 5 + 55 files changed, 118 insertions(+), 153 deletions(-) create mode 100644 tests/cts/acl-ip-address-permitted/data/DISABLED create mode 100644 tests/cts/blocked-https-requests/data/DISABLED create mode 100644 tests/cts/chunked-transfer-encoding-https/data/DISABLED create mode 100644 tests/cts/chunked-transfer-encoding/data/DISABLED create mode 100644 tests/cts/client-body-filter-https/data/DISABLED create mode 100644 tests/cts/client-body-filter/data/DISABLED create mode 100644 tests/cts/client-body-tagger-https/data/DISABLED create mode 100644 tests/cts/client-body-tagger/data/DISABLED create mode 100644 tests/cts/client-header-order-https/data/DISABLED create mode 100644 tests/cts/client-header-order/data/DISABLED create mode 100644 tests/cts/client-tags/data/DISABLED create mode 100644 tests/cts/connection-headers-with-keep-alive-timeout-set/data/DISABLED create mode 100644 tests/cts/content-filters/data/DISABLED create mode 100644 tests/cts/forward-to-http-proxy/data/DISABLED rename tests/cts/forward-to-http-proxy/{privoxy.conf => privoxy.conf.disabled} (100%) create mode 100644 tests/cts/forward-to-socks-proxy/data/DISABLED rename tests/cts/forward-to-socks-proxy/{privoxy.conf => privoxy.conf.disabled} (100%) create mode 100644 tests/cts/gif-deanimation/data/DISABLED create mode 100644 tests/cts/gzip-compression/data/DISABLED create mode 100644 tests/cts/header-filters/data/DISABLED create mode 100644 tests/cts/pac-file-delivery/data/DISABLED create mode 100644 tests/cts/redirects-https/data/DISABLED create mode 100644 tests/cts/redirects/data/DISABLED create mode 100644 tests/cts/rewrite-behind-client-back-https/data/DISABLED create mode 100644 tests/cts/rewrite-behind-client-back/data/DISABLED create mode 100644 tests/cts/user-manual-http/data/DISABLED create mode 100644 tests/cts/user-manual-https/data/DISABLED -- To stop receiving notification emails like this one, please contact the administrator of this repository. From git at git.privoxy.org Thu Oct 9 11:51:23 2025 From: git at git.privoxy.org (User Git) Date: Thu, 09 Oct 2025 11:51:23 +0200 Subject: [Privoxy-commits] [privoxy] 01/16: accept_connection(): Fix memory and socket leak In-Reply-To: <176000348289.70512.16562646801924793992@privoxy-git> References: <176000348289.70512.16562646801924793992@privoxy-git> Message-ID: <20251009095127.157AB591E@git.privoxy.org> This is an automated email from the git hooks/post-receive script. git pushed a commit to branch master in repository privoxy. commit a2af69c67f04e2fe09574ff8f92ca8b106aeb6c2 Author: Fabian Keil AuthorDate: Tue Sep 9 13:39:58 2025 +0200 accept_connection(): Fix memory and socket leak ... if the server name and port number ASCII decimal representation don't fit. This is not expected to happen. Reported by Joshua Rogers. --- jbsockets.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/jbsockets.c b/jbsockets.c index 3ec64a8c..1ff73b34 100644 --- a/jbsockets.c +++ b/jbsockets.c @@ -1442,6 +1442,9 @@ int accept_connection(struct client_state * csp, jb_socket fds[]) "Server name (%s) and port number (%d) ASCII decimal representation " "don't fit into %lu bytes", host_addr, csp->config->hport[i], listen_addr_size); + freez(csp->ip_addr_str); + freez(csp->listen_addr_str); + close_socket(csp->cfd); return 0; } -- To stop receiving notification emails like this one, please contact the administrator of this repository. From git at git.privoxy.org Thu Oct 9 11:51:24 2025 From: git at git.privoxy.org (User Git) Date: Thu, 09 Oct 2025 11:51:24 +0200 Subject: [Privoxy-commits] [privoxy] 02/16: log_error(): Fix segmentation fault In-Reply-To: <176000348289.70512.16562646801924793992@privoxy-git> References: <176000348289.70512.16562646801924793992@privoxy-git> Message-ID: <20251009095129.2070258EC@git.privoxy.org> This is an automated email from the git hooks/post-receive script. git pushed a commit to branch master in repository privoxy. commit 5d4dcc9fbf0f5c06b7e147829b5be5fd27fc8a55 Author: Fabian Keil AuthorDate: Tue Sep 9 13:57:44 2025 +0200 log_error(): Fix segmentation fault ... when logging %E on a platform that isn't Windows and doesn't have strerror(). Reported by Joshua Rogers. --- errlog.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/errlog.c b/errlog.c index da6af45e..a3fb3781 100644 --- a/errlog.c +++ b/errlog.c @@ -843,7 +843,7 @@ void log_error(int loglevel, const char *fmt, ...) #ifdef HAVE_STRERROR format_string = strerror(ival); #else /* ifndef HAVE_STRERROR */ - format_string = NULL; + format_string = "Unable to convert errno to string."; #endif /* ndef HAVE_STRERROR */ if (sval == NULL) { -- To stop receiving notification emails like this one, please contact the administrator of this repository. From git at git.privoxy.org Thu Oct 9 11:51:25 2025 From: git at git.privoxy.org (User Git) Date: Thu, 09 Oct 2025 11:51:25 +0200 Subject: [Privoxy-commits] [privoxy] 03/16: error_response(): Prevent a theoretical memory leak In-Reply-To: <176000348289.70512.16562646801924793992@privoxy-git> References: <176000348289.70512.16562646801924793992@privoxy-git> Message-ID: <20251009095133.4030A58ED@git.privoxy.org> This is an automated email from the git hooks/post-receive script. git pushed a commit to branch master in repository privoxy. commit 385858ba35157fec669918544f3264c94152a5cd Author: Fabian Keil AuthorDate: Tue Sep 9 14:42:54 2025 +0200 error_response(): Prevent a theoretical memory leak Reported by Joshua Rogers. --- cgi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cgi.c b/cgi.c index 4cffc924..91ea06e9 100644 --- a/cgi.c +++ b/cgi.c @@ -914,9 +914,9 @@ struct http_response *error_response(struct client_state *csp, } err = string_append(&path, csp->http->path); + if (!err) err = map(exports, "path", 1, html_encode_and_free_original(path), 0); if (!err) err = map(exports, "host", 1, html_encode(csp->http->host), 0); if (!err) err = map(exports, "hostport", 1, html_encode(csp->http->hostport), 0); - if (!err) err = map(exports, "path", 1, html_encode_and_free_original(path), 0); if (!err) err = map(exports, "protocol", 1, csp->http->ssl ? "https://" : "http://", 1); if (!err) { -- To stop receiving notification emails like this one, please contact the administrator of this repository. From git at git.privoxy.org Thu Oct 9 11:51:27 2025 From: git at git.privoxy.org (User Git) Date: Thu, 09 Oct 2025 11:51:27 +0200 Subject: [Privoxy-commits] [privoxy] 05/16: socks4_connect(): Fix the dstsize passed to strlcpy() in case of socks4a In-Reply-To: <176000348289.70512.16562646801924793992@privoxy-git> References: <176000348289.70512.16562646801924793992@privoxy-git> Message-ID: <20251009095135.5D83F58EF@git.privoxy.org> This is an automated email from the git hooks/post-receive script. git pushed a commit to branch master in repository privoxy. commit b73d65ea904f50a5f00ccb3dff5fa66e515ca991 Author: Fabian Keil AuthorDate: Thu Sep 11 13:54:17 2025 +0200 socks4_connect(): Fix the dstsize passed to strlcpy() in case of socks4a Previously we would substract sizeof(struct socks_op) twice as it's already part of csiz. While this was wrong it didn't cause any actual problems as the buffer size is so large that it didn't matter. Reported by: Joshua Rogers --- gateway.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gateway.c b/gateway.c index 7b0412dd..fc712915 100644 --- a/gateway.c +++ b/gateway.c @@ -875,7 +875,7 @@ static jb_socket socks4_connect(const struct forward_spec *fwd, } else { - strlcpy(buf + csiz, target_host, sizeof(buf) - sizeof(struct socks_op) - csiz); + strlcpy(buf + csiz, target_host, sizeof(buf) - csiz); /* * What we forward to the socks4a server should have the * size of socks_op, plus the length of the userid plus -- To stop receiving notification emails like this one, please contact the administrator of this repository. From git at git.privoxy.org Thu Oct 9 11:51:26 2025 From: git at git.privoxy.org (User Git) Date: Thu, 09 Oct 2025 11:51:26 +0200 Subject: [Privoxy-commits] [privoxy] 04/16: client_host_adder(): Remove stray space In-Reply-To: <176000348289.70512.16562646801924793992@privoxy-git> References: <176000348289.70512.16562646801924793992@privoxy-git> Message-ID: <20251009095135.2C29B5922@git.privoxy.org> This is an automated email from the git hooks/post-receive script. git pushed a commit to branch master in repository privoxy. commit 95d78480997c8567a30927ca0dad0b759feda8ff Author: Fabian Keil AuthorDate: Tue Sep 9 16:01:21 2025 +0200 client_host_adder(): Remove stray space --- parsers.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/parsers.c b/parsers.c index 099a327c..80297813 100644 --- a/parsers.c +++ b/parsers.c @@ -4060,7 +4060,7 @@ static jb_err client_host_adder(struct client_state *csp) /* * remove 'user:pass@' from 'proto://user:pass at host' */ - if ((p = strchr( csp->http->hostport, '@')) != NULL) + if ((p = strchr(csp->http->hostport, '@')) != NULL) { p++; } -- To stop receiving notification emails like this one, please contact the administrator of this repository. From git at git.privoxy.org Thu Oct 9 11:51:28 2025 From: git at git.privoxy.org (User Git) Date: Thu, 09 Oct 2025 11:51:28 +0200 Subject: [Privoxy-commits] [privoxy] 06/16: client_host(): Properly handle IPv6 addresses In-Reply-To: <176000348289.70512.16562646801924793992@privoxy-git> References: <176000348289.70512.16562646801924793992@privoxy-git> Message-ID: <20251009095137.6D4C95924@git.privoxy.org> This is an automated email from the git hooks/post-receive script. git pushed a commit to branch master in repository privoxy. commit 4a9d9b5cc41613c6f43d39f8c05abb5382ea0a98 Author: Fabian Keil AuthorDate: Thu Sep 11 14:13:57 2025 +0200 client_host(): Properly handle IPv6 addresses Reported by: Joshua Rogers --- parsers.c | 31 ++++++++++++++++++++++++++++++- 1 file changed, 30 insertions(+), 1 deletion(-) diff --git a/parsers.c b/parsers.c index 80297813..b08c381d 100644 --- a/parsers.c +++ b/parsers.c @@ -3763,7 +3763,36 @@ static jb_err client_host(struct client_state *csp, char **header) csp->http->hostport = p; freez(csp->http->host); csp->http->host = q; - q = strchr(csp->http->host, ':'); + + if (*p == '[') + { + /* Numeric IPv6 address delimited by brackets */ + p++; + + q = strchr(p, ']'); + if (q == NULL) + { + /* Missing closing bracket */ + return JB_ERR_PARSE; + } + + *q++ = '\0'; + + if (*q == '\0') + { + q = NULL; + } + else if (*q != ':') + { + /* Garbage after closing bracket */ + return JB_ERR_PARSE; + } + } + else + { + /* Plain non-escaped hostname */ + q = strchr(csp->http->host, ':'); + } if (q != NULL) { /* Terminate hostname and evaluate port string */ -- To stop receiving notification emails like this one, please contact the administrator of this repository. From git at git.privoxy.org Thu Oct 9 11:51:29 2025 From: git at git.privoxy.org (User Git) Date: Thu, 09 Oct 2025 11:51:29 +0200 Subject: [Privoxy-commits] [privoxy] 07/16: get_destination_from_headers(): Properly handle IPv6 addresses In-Reply-To: <176000348289.70512.16562646801924793992@privoxy-git> References: <176000348289.70512.16562646801924793992@privoxy-git> Message-ID: <20251009095138.47E865925@git.privoxy.org> This is an automated email from the git hooks/post-receive script. git pushed a commit to branch master in repository privoxy. commit 9d366482cf00c8f7fe9a250eae22c183546a003b Author: Fabian Keil AuthorDate: Thu Sep 11 14:27:03 2025 +0200 get_destination_from_headers(): Properly handle IPv6 addresses --- parsers.c | 32 ++++++++++++++++++++++++++++++-- 1 file changed, 30 insertions(+), 2 deletions(-) diff --git a/parsers.c b/parsers.c index b08c381d..1b7e2de2 100644 --- a/parsers.c +++ b/parsers.c @@ -4891,7 +4891,7 @@ static jb_err parse_time_header(const char *header, time_t *result) * 2 : http = storage for the result (host, port and hostport). * * Returns : JB_ERR_MEMORY (or terminates) in case of memory problems, - * JB_ERR_PARSE if the host header couldn't be found, + * JB_ERR_PARSE if the host header couldn't be found or parsed, * JB_ERR_OK otherwise. * *********************************************************************/ @@ -4921,7 +4921,35 @@ jb_err get_destination_from_headers(const struct list *headers, struct http_requ http->hostport = p; freez(http->host); http->host = q; - q = strchr(http->host, ':'); + if (*p == '[') + { + /* Numeric IPv6 address delimited by brackets */ + p++; + + q = strchr(p, ']'); + if (q == NULL) + { + /* Missing closing bracket */ + return JB_ERR_PARSE; + } + + *q++ = '\0'; + + if (*q == '\0') + { + q = NULL; + } + else if (*q != ':') + { + /* Garbage after closing bracket */ + return JB_ERR_PARSE; + } + } + else + { + /* Plain non-escaped hostname */ + q = strchr(http->host, ':'); + } if (q != NULL) { /* Terminate hostname and evaluate port string */ -- To stop receiving notification emails like this one, please contact the administrator of this repository. From git at git.privoxy.org Thu Oct 9 11:51:31 2025 From: git at git.privoxy.org (User Git) Date: Thu, 09 Oct 2025 11:51:31 +0200 Subject: [Privoxy-commits] [privoxy] 09/16: Let get_destination_from_headers() handle the https case as well to reduce code duplication In-Reply-To: <176000348289.70512.16562646801924793992@privoxy-git> References: <176000348289.70512.16562646801924793992@privoxy-git> Message-ID: <20251009095140.6358C5928@git.privoxy.org> This is an automated email from the git hooks/post-receive script. git pushed a commit to branch master in repository privoxy. commit 8ef5ce257c52f74a8b810f3535f59def55867ed9 Author: Fabian Keil AuthorDate: Thu Sep 11 14:44:38 2025 +0200 Let get_destination_from_headers() handle the https case as well to reduce code duplication --- jcc.c | 4 +- parsers.c | 126 +++++--------------------------------------------------------- parsers.h | 5 +-- 3 files changed, 13 insertions(+), 122 deletions(-) diff --git a/jcc.c b/jcc.c index 3aecb084..a3ebcf4f 100644 --- a/jcc.c +++ b/jcc.c @@ -589,7 +589,7 @@ static jb_err get_request_destination_elsewhere(struct client_state *csp, struct return JB_ERR_PARSE; } - else if (JB_ERR_OK == get_destination_from_headers(headers, csp->http)) + else if (JB_ERR_OK == get_destination_from_headers(headers, csp->http, FALSE)) { /* Split the domain we just got for pattern matching */ init_domain_components(csp->http); @@ -2760,7 +2760,7 @@ static jb_err process_encrypted_request_headers(struct client_state *csp) freez(p); } - if (JB_ERR_OK != get_destination_from_https_headers(headers, csp->http)) + if (JB_ERR_OK != get_destination_from_headers(headers, csp->http, TRUE)) { /* * Our attempts to get the request destination diff --git a/parsers.c b/parsers.c index 2ab405fa..e962c14b 100644 --- a/parsers.c +++ b/parsers.c @@ -4889,13 +4889,14 @@ static jb_err parse_time_header(const char *header, time_t *result) * 1 : headers = List of headers (one of them hopefully being * the "Host:" header) * 2 : http = storage for the result (host, port and hostport). + * 3 : https_request = Whether or not the request was received through https * * Returns : JB_ERR_MEMORY (or terminates) in case of memory problems, * JB_ERR_PARSE if the host header couldn't be found or parsed, * JB_ERR_OK otherwise. * *********************************************************************/ -jb_err get_destination_from_headers(const struct list *headers, struct http_request *http) +jb_err get_destination_from_headers(const struct list *headers, struct http_request *http, int https_request) { char *q; char *p; @@ -4958,132 +4959,26 @@ jb_err get_destination_from_headers(const struct list *headers, struct http_requ } else { - http->port = 80; + http->port = https_request ? 443 : 80; } /* Rebuild request URL */ freez(http->url); - http->url = strdup("http://"); - string_append(&http->url, http->hostport); - string_append(&http->url, http->path); - if (http->url == NULL) - { - return JB_ERR_MEMORY; - } - - log_error(LOG_LEVEL_HEADER, - "Destination extracted from \"Host\" header. New request URL: %s", - http->url); - - /* - * Regenerate request line in "proxy format" - * to make rewrites more convenient. - */ - assert(http->cmd != NULL); - freez(http->cmd); - http->cmd = strdup_or_die(http->gpc); - string_append(&http->cmd, " "); - string_append(&http->cmd, http->url); - string_append(&http->cmd, " "); - string_append(&http->cmd, http->version); - if (http->cmd == NULL) - { - return JB_ERR_MEMORY; - } - - return JB_ERR_OK; - -} - - -#ifdef FEATURE_HTTPS_INSPECTION -/********************************************************************* - * - * Function : get_destination_from_https_headers - * - * Description : Parse the previously encrypted "Host:" header to - * get the request's destination. - * - * Parameters : - * 1 : headers = List of headers (one of them hopefully being - * the "Host:" header) - * 2 : http = storage for the result (host, port and hostport). - * - * Returns : JB_ERR_MEMORY (or terminates) in case of memory problems, - * JB_ERR_PARSE if the host header couldn't be found, - * JB_ERR_OK otherwise. - * - *********************************************************************/ -jb_err get_destination_from_https_headers(const struct list *headers, struct http_request *http) -{ - char *q; - char *p; - char *host; - - host = get_header_value(headers, "Host:"); - - if (NULL == host) - { - log_error(LOG_LEVEL_ERROR, "No \"Host:\" header found."); - return JB_ERR_PARSE; - } - - p = string_tolower(host); - if (p == NULL) + if (https_request) { - return JB_ERR_MEMORY; - } - chomp(p); - q = strdup_or_die(p); - - freez(http->hostport); - http->hostport = p; - freez(http->host); - http->host = q; - if (*p == '[') - { - /* Numeric IPv6 address delimited by brackets */ - p++; - - q = strchr(p, ']'); - if (q == NULL) - { - /* Missing closing bracket */ - return JB_ERR_PARSE; - } - - *q++ = '\0'; - - if (*q == '\0') - { - q = NULL; - } - else if (*q != ':') - { - /* Garbage after closing bracket */ - return JB_ERR_PARSE; - } + http->url = strdup(http->path); } else { - /* Plain non-escaped hostname */ - q = strchr(http->host, ':'); - } - if (q != NULL) - { - /* Terminate hostname and evaluate port string */ - *q++ = '\0'; - http->port = atoi(q); + http->url = strdup("http://"); + string_append(&http->url, http->hostport); + string_append(&http->url, http->path); } - else + if (http->url == NULL) { - http->port = 443; + return JB_ERR_MEMORY; } - /* Rebuild request URL */ - freez(http->url); - http->url = strdup_or_die(http->path); - log_error(LOG_LEVEL_HEADER, "Destination extracted from \"Host\" header. New request URL: %s", http->url); @@ -5107,7 +5002,6 @@ jb_err get_destination_from_https_headers(const struct list *headers, struct htt return JB_ERR_OK; } -#endif /* def FEATURE_HTTPS_INSPECTION */ /********************************************************************* diff --git a/parsers.h b/parsers.h index 802133f0..e0e55414 100644 --- a/parsers.h +++ b/parsers.h @@ -63,10 +63,7 @@ extern jb_err sed_https(struct client_state *csp); extern jb_err header_adjust_content_length(char **header, size_t content_length); extern jb_err update_server_headers(struct client_state *csp); extern void get_http_time(int time_offset, char *buf, size_t buffer_size); -extern jb_err get_destination_from_headers(const struct list *headers, struct http_request *http); -#ifdef FEATURE_HTTPS_INSPECTION -extern jb_err get_destination_from_https_headers(const struct list *headers, struct http_request *http); -#endif +extern jb_err get_destination_from_headers(const struct list *headers, struct http_request *http, int https_request); extern unsigned long long get_expected_content_length(struct list *headers); extern jb_err client_transfer_encoding(struct client_state *csp, char **header); -- To stop receiving notification emails like this one, please contact the administrator of this repository. From git at git.privoxy.org Thu Oct 9 11:51:30 2025 From: git at git.privoxy.org (User Git) Date: Thu, 09 Oct 2025 11:51:30 +0200 Subject: [Privoxy-commits] [privoxy] 08/16: get_destination_from_https_headers(): Properly handle IPv6 addresses In-Reply-To: <176000348289.70512.16562646801924793992@privoxy-git> References: <176000348289.70512.16562646801924793992@privoxy-git> Message-ID: <20251009095140.254A45927@git.privoxy.org> This is an automated email from the git hooks/post-receive script. git pushed a commit to branch master in repository privoxy. commit 97316c794f7b3ef676e1299a3b41c1ac80f07101 Author: Fabian Keil AuthorDate: Thu Sep 11 14:37:38 2025 +0200 get_destination_from_https_headers(): Properly handle IPv6 addresses --- parsers.c | 30 +++++++++++++++++++++++++++++- 1 file changed, 29 insertions(+), 1 deletion(-) diff --git a/parsers.c b/parsers.c index 1b7e2de2..2ab405fa 100644 --- a/parsers.c +++ b/parsers.c @@ -5040,7 +5040,35 @@ jb_err get_destination_from_https_headers(const struct list *headers, struct htt http->hostport = p; freez(http->host); http->host = q; - q = strchr(http->host, ':'); + if (*p == '[') + { + /* Numeric IPv6 address delimited by brackets */ + p++; + + q = strchr(p, ']'); + if (q == NULL) + { + /* Missing closing bracket */ + return JB_ERR_PARSE; + } + + *q++ = '\0'; + + if (*q == '\0') + { + q = NULL; + } + else if (*q != ':') + { + /* Garbage after closing bracket */ + return JB_ERR_PARSE; + } + } + else + { + /* Plain non-escaped hostname */ + q = strchr(http->host, ':'); + } if (q != NULL) { /* Terminate hostname and evaluate port string */ -- To stop receiving notification emails like this one, please contact the administrator of this repository. From git at git.privoxy.org Thu Oct 9 11:51:32 2025 From: git at git.privoxy.org (User Git) Date: Thu, 09 Oct 2025 11:51:32 +0200 Subject: [Privoxy-commits] [privoxy] 10/16: privoxy-log-parser: Highlight: Socket 8 timed out while waiting for client headers In-Reply-To: <176000348289.70512.16562646801924793992@privoxy-git> References: <176000348289.70512.16562646801924793992@privoxy-git> Message-ID: <20251009095141.A6120592A@git.privoxy.org> This is an automated email from the git hooks/post-receive script. git pushed a commit to branch master in repository privoxy. commit bceabadcde55d0cf18a07673c1a7cbcfeab7939a Author: Fabian Keil AuthorDate: Fri Sep 12 12:25:15 2025 +0200 privoxy-log-parser: Highlight: Socket 8 timed out while waiting for client headers --- tools/privoxy-log-parser.pl | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tools/privoxy-log-parser.pl b/tools/privoxy-log-parser.pl index 2eaa1fff..06564c68 100755 --- a/tools/privoxy-log-parser.pl +++ b/tools/privoxy-log-parser.pl @@ -1937,6 +1937,11 @@ sub handle_loglevel_connect($) { $c =~ s@(?<=timeout )(\d+)@$h{'Number'}$1$h{'Standard'}@; $c = highlight_matched_url($c, "(?<=reached: ).*") + } elsif ($c =~ m/^Socket \d+ timed out/) { + + # Socket 8 timed out while waiting for client headers. + $c =~ s@(?<=Socket )(\d+)@$h{'Number'}$1$h{'Standard'}@; + } elsif ($c =~ m/^Prepared to read up to /) { # Prepared to read up to 157 bytes of encrypted request body from the client. -- To stop receiving notification emails like this one, please contact the administrator of this repository. From git at git.privoxy.org Thu Oct 9 11:51:33 2025 From: git at git.privoxy.org (User Git) Date: Thu, 09 Oct 2025 11:51:33 +0200 Subject: [Privoxy-commits] [privoxy] 11/16: Widen block pattern from 'metrics.' to '.metricts.' In-Reply-To: <176000348289.70512.16562646801924793992@privoxy-git> References: <176000348289.70512.16562646801924793992@privoxy-git> Message-ID: <20251009095141.E301058F3@git.privoxy.org> This is an automated email from the git hooks/post-receive script. git pushed a commit to branch master in repository privoxy. commit b8459b45f115ae6414e9051af34c423dd8dbbdf9 Author: Fabian Keil AuthorDate: Fri Sep 19 11:51:18 2025 +0200 Widen block pattern from 'metrics.' to '.metricts.' --- default.action.master | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/default.action.master b/default.action.master index 51e4442b..ec74de5b 100644 --- a/default.action.master +++ b/default.action.master @@ -657,7 +657,8 @@ count*. *counter. #MASTER# BLOCK-REFERRER: http://tech.cybernetnews.com/ # Blocked URL = http://metrics.performancing.com/ -metrics. +# Blocked URL = https://cdn.prod.metrics.imdb.com/tr?fcn=IMDbNext-Client&ht=actionOnly&hr=https%3A%2F%2Fwww.imdb.com%2Ftitle%2Ftt1499372%2F%3Fref_%3Dtt_ov_ep_nx&isu=true&mid=A1EVAM02EL8SFB&ip=45.84.107.198&pa=vp-browser-blocked-autoplay&pc=vi2983640345&pt=title&ref=&sid=134-5211317-7699348&st=1758273618592&spt=main&ua=Mozilla%2F5.0+%28X11%3B+Linux+x86_64%3B+rv%3A128.0%29+Gecko%2F20100101+Firefox%2F128.0&pat=main&lang=en-US&cor=AQ&sv=web&sc=200&sn=www.imdb.com&pi=%2Ftitle%2Ftt1499371%2F&q [...] +.metrics. ############################################################################# # Generic unblockers by host: -- To stop receiving notification emails like this one, please contact the administrator of this repository. From git at git.privoxy.org Thu Oct 9 11:51:34 2025 From: git at git.privoxy.org (User Git) Date: Thu, 09 Oct 2025 11:51:34 +0200 Subject: [Privoxy-commits] [privoxy] 12/16: tests/cts: Remove 'none' server section from tests In-Reply-To: <176000348289.70512.16562646801924793992@privoxy-git> References: <176000348289.70512.16562646801924793992@privoxy-git> Message-ID: <20251009095143.59A4458F5@git.privoxy.org> This is an automated email from the git hooks/post-receive script. git pushed a commit to branch master in repository privoxy. commit 15c1b86aee10c60bec373cefb215416bc6f7d470 Author: Fabian Keil AuthorDate: Fri Sep 26 15:38:23 2025 +0200 tests/cts: Remove 'none' server section from tests It's no longer supported as of curl commit 71c9706959cb. --- tests/cts/client-tags/data/test1 | 3 --- tests/cts/client-tags/data/test7 | 3 --- tests/cts/pac-file-delivery/data/test1 | 3 --- tests/cts/redirects-https/data/test1 | 3 --- tests/cts/redirects-https/data/test2 | 3 --- tests/cts/redirects-https/data/test3 | 3 --- tests/cts/redirects-https/data/test4 | 3 --- tests/cts/redirects-https/data/test5 | 3 --- tests/cts/redirects/data/test1 | 3 --- tests/cts/redirects/data/test2 | 3 --- tests/cts/redirects/data/test3 | 3 --- tests/cts/redirects/data/test4 | 3 --- tests/cts/rewrite-behind-client-back-https/data/test5 | 3 --- tests/cts/rewrite-behind-client-back/data/test1 | 3 --- tests/cts/rewrite-behind-client-back/data/test5 | 3 --- tests/cts/user-manual-http/data/test1 | 3 --- tests/cts/user-manual-https/data/test1 | 3 --- 17 files changed, 51 deletions(-) diff --git a/tests/cts/client-tags/data/test1 b/tests/cts/client-tags/data/test1 index 1c6ea1a2..b55174f5 100644 --- a/tests/cts/client-tags/data/test1 +++ b/tests/cts/client-tags/data/test1 @@ -7,9 +7,6 @@ HTTP GET - -none - Request to blocked URL with now client-tags active diff --git a/tests/cts/client-tags/data/test7 b/tests/cts/client-tags/data/test7 index 905cab51..65328800 100644 --- a/tests/cts/client-tags/data/test7 +++ b/tests/cts/client-tags/data/test7 @@ -22,9 +22,6 @@ Date: Sun, 28 Mar 2021 09:35:05 GMT - -none - Confirm that the cors-allowed-origin directives results in headers being are added to CGI responses. diff --git a/tests/cts/pac-file-delivery/data/test1 b/tests/cts/pac-file-delivery/data/test1 index 1967870f..1440c042 100644 --- a/tests/cts/pac-file-delivery/data/test1 +++ b/tests/cts/pac-file-delivery/data/test1 @@ -34,9 +34,6 @@ function FindProxyForURL(url, host) { - -none - CGI request for PAC file diff --git a/tests/cts/redirects-https/data/test1 b/tests/cts/redirects-https/data/test1 index a1a69ada..e49310ef 100644 --- a/tests/cts/redirects-https/data/test1 +++ b/tests/cts/redirects-https/data/test1 @@ -31,9 +31,6 @@ Date: Sun, 10 Jan 2021 08:13:02 GMT - -none - Redirect to http://www.privoxy.org diff --git a/tests/cts/redirects-https/data/test2 b/tests/cts/redirects-https/data/test2 index 60e815f6..f907db0c 100644 --- a/tests/cts/redirects-https/data/test2 +++ b/tests/cts/redirects-https/data/test2 @@ -31,9 +31,6 @@ Date: Sun, 10 Jan 2021 08:13:02 GMT - -none - Redirect to https://www.privoxy.org diff --git a/tests/cts/redirects-https/data/test3 b/tests/cts/redirects-https/data/test3 index 3e7368b2..f5952d7f 100644 --- a/tests/cts/redirects-https/data/test3 +++ b/tests/cts/redirects-https/data/test3 @@ -31,9 +31,6 @@ Date: Sun, 10 Jan 2021 08:13:02 GMT - -none - Redirect to http://www.privoxy.org/ using a pcrs command diff --git a/tests/cts/redirects-https/data/test4 b/tests/cts/redirects-https/data/test4 index 47491e6b..307a58c0 100644 --- a/tests/cts/redirects-https/data/test4 +++ b/tests/cts/redirects-https/data/test4 @@ -31,9 +31,6 @@ Date: Sun, 10 Jan 2021 08:13:02 GMT - -none - Redirect to https://www.privoxy.org/ using a pcrs command diff --git a/tests/cts/redirects-https/data/test5 b/tests/cts/redirects-https/data/test5 index 9bcc1bfa..3bfed39d 100644 --- a/tests/cts/redirects-https/data/test5 +++ b/tests/cts/redirects-https/data/test5 @@ -31,9 +31,6 @@ Date: Sun, 10 Jan 2021 08:13:02 GMT - -none - Redirect to https://www.privoxy.org/path-replaced using a pcrs command diff --git a/tests/cts/redirects/data/test1 b/tests/cts/redirects/data/test1 index 3bcd690a..52e75cdc 100644 --- a/tests/cts/redirects/data/test1 +++ b/tests/cts/redirects/data/test1 @@ -29,9 +29,6 @@ Date: Sun, 10 Jan 2021 08:13:02 GMT - -none - Redirect to http://www.privoxy.org diff --git a/tests/cts/redirects/data/test2 b/tests/cts/redirects/data/test2 index 245b5bcf..4c8ab455 100644 --- a/tests/cts/redirects/data/test2 +++ b/tests/cts/redirects/data/test2 @@ -29,9 +29,6 @@ Date: Sun, 10 Jan 2021 08:13:02 GMT - -none - Redirect to https://www.privoxy.org diff --git a/tests/cts/redirects/data/test3 b/tests/cts/redirects/data/test3 index 625131b5..d74131b9 100644 --- a/tests/cts/redirects/data/test3 +++ b/tests/cts/redirects/data/test3 @@ -29,9 +29,6 @@ Date: Sun, 10 Jan 2021 08:13:02 GMT - -none - Redirect to http://www.privoxy.org using a pcrs command diff --git a/tests/cts/redirects/data/test4 b/tests/cts/redirects/data/test4 index f9c632b7..bc44d75b 100644 --- a/tests/cts/redirects/data/test4 +++ b/tests/cts/redirects/data/test4 @@ -29,9 +29,6 @@ Date: Sun, 10 Jan 2021 08:13:02 GMT - -none - Redirect to http://www.privoxy.org/path-replaced using a pcrs command diff --git a/tests/cts/rewrite-behind-client-back-https/data/test5 b/tests/cts/rewrite-behind-client-back-https/data/test5 index 2e6bd11b..d4bbbe0d 100644 --- a/tests/cts/rewrite-behind-client-back-https/data/test5 +++ b/tests/cts/rewrite-behind-client-back-https/data/test5 @@ -31,9 +31,6 @@ Bad request. Messed up with header filters. - -none - Rewrite behind the client's back: unsupporte http version diff --git a/tests/cts/rewrite-behind-client-back/data/test1 b/tests/cts/rewrite-behind-client-back/data/test1 index dd0175bc..b2d2825b 100644 --- a/tests/cts/rewrite-behind-client-back/data/test1 +++ b/tests/cts/rewrite-behind-client-back/data/test1 @@ -29,9 +29,6 @@ Bad request. Messed up with header filters. - -none - Rewrite behind the client's back: invalid upgrade to https diff --git a/tests/cts/rewrite-behind-client-back/data/test5 b/tests/cts/rewrite-behind-client-back/data/test5 index 82da79df..30baf0f2 100644 --- a/tests/cts/rewrite-behind-client-back/data/test5 +++ b/tests/cts/rewrite-behind-client-back/data/test5 @@ -28,9 +28,6 @@ Bad request. Messed up with header filters. - -none - Rewrite behind the client's back: unsupported http version diff --git a/tests/cts/user-manual-http/data/test1 b/tests/cts/user-manual-http/data/test1 index ee986ba0..7994d9b5 100644 --- a/tests/cts/user-manual-http/data/test1 +++ b/tests/cts/user-manual-http/data/test1 @@ -7,9 +7,6 @@ HTTP GET - -none - CGI request for the user manual while delivery has been disabled by specifying a http:// URL diff --git a/tests/cts/user-manual-https/data/test1 b/tests/cts/user-manual-https/data/test1 index e9d6acb7..d6a5d4a3 100644 --- a/tests/cts/user-manual-https/data/test1 +++ b/tests/cts/user-manual-https/data/test1 @@ -7,9 +7,6 @@ HTTP GET - -none - CGI request for the user manual while delivery has been disabled by specifying a https:// URL -- To stop receiving notification emails like this one, please contact the administrator of this repository. From git at git.privoxy.org Thu Oct 9 11:51:35 2025 From: git at git.privoxy.org (User Git) Date: Thu, 09 Oct 2025 11:51:35 +0200 Subject: [Privoxy-commits] [privoxy] 13/16: Disable the forward-to-socks-proxy and forward-to-http-proxy scenarios for now In-Reply-To: <176000348289.70512.16562646801924793992@privoxy-git> References: <176000348289.70512.16562646801924793992@privoxy-git> Message-ID: <20251009095144.F28C358F7@git.privoxy.org> This is an automated email from the git hooks/post-receive script. git pushed a commit to branch master in repository privoxy. commit 9c19aad7ddd48f4b611543a858305359a5a5621e Author: Fabian Keil AuthorDate: Fri Sep 26 15:47:12 2025 +0200 Disable the forward-to-socks-proxy and forward-to-http-proxy scenarios for now Since curl commit d39db811929f the port randomisation can no longer be disabled by the injected module so the tests don't work at the moment. Discussion on the curl library mailinglist didn't result in a solution [0]. [0]: https://curl.se/mail/lib-2025-08/0000.html --- tests/cts/forward-to-http-proxy/{privoxy.conf => privoxy.conf.disabled} | 0 tests/cts/forward-to-socks-proxy/{privoxy.conf => privoxy.conf.disabled} | 0 2 files changed, 0 insertions(+), 0 deletions(-) diff --git a/tests/cts/forward-to-http-proxy/privoxy.conf b/tests/cts/forward-to-http-proxy/privoxy.conf.disabled similarity index 100% rename from tests/cts/forward-to-http-proxy/privoxy.conf rename to tests/cts/forward-to-http-proxy/privoxy.conf.disabled diff --git a/tests/cts/forward-to-socks-proxy/privoxy.conf b/tests/cts/forward-to-socks-proxy/privoxy.conf.disabled similarity index 100% rename from tests/cts/forward-to-socks-proxy/privoxy.conf rename to tests/cts/forward-to-socks-proxy/privoxy.conf.disabled -- To stop receiving notification emails like this one, please contact the administrator of this repository. From git at git.privoxy.org Thu Oct 9 11:51:36 2025 From: git at git.privoxy.org (User Git) Date: Thu, 09 Oct 2025 11:51:36 +0200 Subject: [Privoxy-commits] [privoxy] 14/16: tests/cts: Add 'DISABLED' files to the data directories In-Reply-To: <176000348289.70512.16562646801924793992@privoxy-git> References: <176000348289.70512.16562646801924793992@privoxy-git> Message-ID: <20251009095146.08752592C@git.privoxy.org> This is an automated email from the git hooks/post-receive script. git pushed a commit to branch master in repository privoxy. commit b5727fa97db00ee132fcc4284d7192e176910aec Author: Fabian Keil AuthorDate: Fri Sep 26 15:59:04 2025 +0200 tests/cts: Add 'DISABLED' files to the data directories Since curl commit b0394b1535db the files are required to be present even if no tests are being disabled. --- tests/cts/acl-ip-address-permitted/data/DISABLED | 1 + tests/cts/blocked-https-requests/data/DISABLED | 1 + tests/cts/chunked-transfer-encoding-https/data/DISABLED | 1 + tests/cts/chunked-transfer-encoding/data/DISABLED | 1 + tests/cts/client-body-filter-https/data/DISABLED | 1 + tests/cts/client-body-filter/data/DISABLED | 1 + tests/cts/client-body-tagger-https/data/DISABLED | 1 + tests/cts/client-body-tagger/data/DISABLED | 1 + tests/cts/client-header-order-https/data/DISABLED | 1 + tests/cts/client-header-order/data/DISABLED | 1 + tests/cts/client-tags/data/DISABLED | 1 + tests/cts/connection-headers-with-keep-alive-timeout-set/data/DISABLED | 1 + tests/cts/content-filters/data/DISABLED | 1 + tests/cts/forward-to-http-proxy/data/DISABLED | 1 + tests/cts/forward-to-socks-proxy/data/DISABLED | 1 + tests/cts/gif-deanimation/data/DISABLED | 1 + tests/cts/gzip-compression/data/DISABLED | 1 + tests/cts/header-filters/data/DISABLED | 1 + tests/cts/pac-file-delivery/data/DISABLED | 1 + tests/cts/redirects-https/data/DISABLED | 1 + tests/cts/redirects/data/DISABLED | 1 + tests/cts/rewrite-behind-client-back-https/data/DISABLED | 1 + tests/cts/rewrite-behind-client-back/data/DISABLED | 1 + tests/cts/user-manual-http/data/DISABLED | 1 + tests/cts/user-manual-https/data/DISABLED | 1 + 25 files changed, 25 insertions(+) diff --git a/tests/cts/acl-ip-address-permitted/data/DISABLED b/tests/cts/acl-ip-address-permitted/data/DISABLED new file mode 100644 index 00000000..da43e6a4 --- /dev/null +++ b/tests/cts/acl-ip-address-permitted/data/DISABLED @@ -0,0 +1 @@ +# Don't disable any tests. diff --git a/tests/cts/blocked-https-requests/data/DISABLED b/tests/cts/blocked-https-requests/data/DISABLED new file mode 100644 index 00000000..da43e6a4 --- /dev/null +++ b/tests/cts/blocked-https-requests/data/DISABLED @@ -0,0 +1 @@ +# Don't disable any tests. diff --git a/tests/cts/chunked-transfer-encoding-https/data/DISABLED b/tests/cts/chunked-transfer-encoding-https/data/DISABLED new file mode 100644 index 00000000..da43e6a4 --- /dev/null +++ b/tests/cts/chunked-transfer-encoding-https/data/DISABLED @@ -0,0 +1 @@ +# Don't disable any tests. diff --git a/tests/cts/chunked-transfer-encoding/data/DISABLED b/tests/cts/chunked-transfer-encoding/data/DISABLED new file mode 100644 index 00000000..da43e6a4 --- /dev/null +++ b/tests/cts/chunked-transfer-encoding/data/DISABLED @@ -0,0 +1 @@ +# Don't disable any tests. diff --git a/tests/cts/client-body-filter-https/data/DISABLED b/tests/cts/client-body-filter-https/data/DISABLED new file mode 100644 index 00000000..da43e6a4 --- /dev/null +++ b/tests/cts/client-body-filter-https/data/DISABLED @@ -0,0 +1 @@ +# Don't disable any tests. diff --git a/tests/cts/client-body-filter/data/DISABLED b/tests/cts/client-body-filter/data/DISABLED new file mode 100644 index 00000000..da43e6a4 --- /dev/null +++ b/tests/cts/client-body-filter/data/DISABLED @@ -0,0 +1 @@ +# Don't disable any tests. diff --git a/tests/cts/client-body-tagger-https/data/DISABLED b/tests/cts/client-body-tagger-https/data/DISABLED new file mode 100644 index 00000000..da43e6a4 --- /dev/null +++ b/tests/cts/client-body-tagger-https/data/DISABLED @@ -0,0 +1 @@ +# Don't disable any tests. diff --git a/tests/cts/client-body-tagger/data/DISABLED b/tests/cts/client-body-tagger/data/DISABLED new file mode 100644 index 00000000..da43e6a4 --- /dev/null +++ b/tests/cts/client-body-tagger/data/DISABLED @@ -0,0 +1 @@ +# Don't disable any tests. diff --git a/tests/cts/client-header-order-https/data/DISABLED b/tests/cts/client-header-order-https/data/DISABLED new file mode 100644 index 00000000..da43e6a4 --- /dev/null +++ b/tests/cts/client-header-order-https/data/DISABLED @@ -0,0 +1 @@ +# Don't disable any tests. diff --git a/tests/cts/client-header-order/data/DISABLED b/tests/cts/client-header-order/data/DISABLED new file mode 100644 index 00000000..da43e6a4 --- /dev/null +++ b/tests/cts/client-header-order/data/DISABLED @@ -0,0 +1 @@ +# Don't disable any tests. diff --git a/tests/cts/client-tags/data/DISABLED b/tests/cts/client-tags/data/DISABLED new file mode 100644 index 00000000..da43e6a4 --- /dev/null +++ b/tests/cts/client-tags/data/DISABLED @@ -0,0 +1 @@ +# Don't disable any tests. diff --git a/tests/cts/connection-headers-with-keep-alive-timeout-set/data/DISABLED b/tests/cts/connection-headers-with-keep-alive-timeout-set/data/DISABLED new file mode 100644 index 00000000..da43e6a4 --- /dev/null +++ b/tests/cts/connection-headers-with-keep-alive-timeout-set/data/DISABLED @@ -0,0 +1 @@ +# Don't disable any tests. diff --git a/tests/cts/content-filters/data/DISABLED b/tests/cts/content-filters/data/DISABLED new file mode 100644 index 00000000..da43e6a4 --- /dev/null +++ b/tests/cts/content-filters/data/DISABLED @@ -0,0 +1 @@ +# Don't disable any tests. diff --git a/tests/cts/forward-to-http-proxy/data/DISABLED b/tests/cts/forward-to-http-proxy/data/DISABLED new file mode 100644 index 00000000..da43e6a4 --- /dev/null +++ b/tests/cts/forward-to-http-proxy/data/DISABLED @@ -0,0 +1 @@ +# Don't disable any tests. diff --git a/tests/cts/forward-to-socks-proxy/data/DISABLED b/tests/cts/forward-to-socks-proxy/data/DISABLED new file mode 100644 index 00000000..da43e6a4 --- /dev/null +++ b/tests/cts/forward-to-socks-proxy/data/DISABLED @@ -0,0 +1 @@ +# Don't disable any tests. diff --git a/tests/cts/gif-deanimation/data/DISABLED b/tests/cts/gif-deanimation/data/DISABLED new file mode 100644 index 00000000..da43e6a4 --- /dev/null +++ b/tests/cts/gif-deanimation/data/DISABLED @@ -0,0 +1 @@ +# Don't disable any tests. diff --git a/tests/cts/gzip-compression/data/DISABLED b/tests/cts/gzip-compression/data/DISABLED new file mode 100644 index 00000000..da43e6a4 --- /dev/null +++ b/tests/cts/gzip-compression/data/DISABLED @@ -0,0 +1 @@ +# Don't disable any tests. diff --git a/tests/cts/header-filters/data/DISABLED b/tests/cts/header-filters/data/DISABLED new file mode 100644 index 00000000..da43e6a4 --- /dev/null +++ b/tests/cts/header-filters/data/DISABLED @@ -0,0 +1 @@ +# Don't disable any tests. diff --git a/tests/cts/pac-file-delivery/data/DISABLED b/tests/cts/pac-file-delivery/data/DISABLED new file mode 100644 index 00000000..da43e6a4 --- /dev/null +++ b/tests/cts/pac-file-delivery/data/DISABLED @@ -0,0 +1 @@ +# Don't disable any tests. diff --git a/tests/cts/redirects-https/data/DISABLED b/tests/cts/redirects-https/data/DISABLED new file mode 100644 index 00000000..da43e6a4 --- /dev/null +++ b/tests/cts/redirects-https/data/DISABLED @@ -0,0 +1 @@ +# Don't disable any tests. diff --git a/tests/cts/redirects/data/DISABLED b/tests/cts/redirects/data/DISABLED new file mode 100644 index 00000000..da43e6a4 --- /dev/null +++ b/tests/cts/redirects/data/DISABLED @@ -0,0 +1 @@ +# Don't disable any tests. diff --git a/tests/cts/rewrite-behind-client-back-https/data/DISABLED b/tests/cts/rewrite-behind-client-back-https/data/DISABLED new file mode 100644 index 00000000..da43e6a4 --- /dev/null +++ b/tests/cts/rewrite-behind-client-back-https/data/DISABLED @@ -0,0 +1 @@ +# Don't disable any tests. diff --git a/tests/cts/rewrite-behind-client-back/data/DISABLED b/tests/cts/rewrite-behind-client-back/data/DISABLED new file mode 100644 index 00000000..da43e6a4 --- /dev/null +++ b/tests/cts/rewrite-behind-client-back/data/DISABLED @@ -0,0 +1 @@ +# Don't disable any tests. diff --git a/tests/cts/user-manual-http/data/DISABLED b/tests/cts/user-manual-http/data/DISABLED new file mode 100644 index 00000000..da43e6a4 --- /dev/null +++ b/tests/cts/user-manual-http/data/DISABLED @@ -0,0 +1 @@ +# Don't disable any tests. diff --git a/tests/cts/user-manual-https/data/DISABLED b/tests/cts/user-manual-https/data/DISABLED new file mode 100644 index 00000000..da43e6a4 --- /dev/null +++ b/tests/cts/user-manual-https/data/DISABLED @@ -0,0 +1 @@ +# Don't disable any tests. -- To stop receiving notification emails like this one, please contact the administrator of this repository. From git at git.privoxy.org Thu Oct 9 11:51:37 2025 From: git at git.privoxy.org (User Git) Date: Thu, 09 Oct 2025 11:51:37 +0200 Subject: [Privoxy-commits] [privoxy] 15/16: gen-skip-reasons.pl: Skip tests with non-standard 'Connection: mooo' headers In-Reply-To: <176000348289.70512.16562646801924793992@privoxy-git> References: <176000348289.70512.16562646801924793992@privoxy-git> Message-ID: <20251009095147.630D258F9@git.privoxy.org> This is an automated email from the git hooks/post-receive script. git pushed a commit to branch master in repository privoxy. commit b541a44fab70e1c8f1ebd41f50885e11665779b2 Author: Fabian Keil AuthorDate: Wed Oct 1 11:54:54 2025 +0200 gen-skip-reasons.pl: Skip tests with non-standard 'Connection: mooo' headers --- tests/cts/gen-skip-reasons.pl | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/cts/gen-skip-reasons.pl b/tests/cts/gen-skip-reasons.pl index da79f1f1..c290fe9b 100755 --- a/tests/cts/gen-skip-reasons.pl +++ b/tests/cts/gen-skip-reasons.pl @@ -50,6 +50,11 @@ sub main() { $why = "Expected to fail with Privoxy. In case of missing server headers Privoxy generates an error message the test doesn't expect."; } elsif ($testnum eq 31 or $testnum eq 1105 or $testnum eq 1160) { $why = "Expected to fail. Privoxy normalizes white-space in a cookie."; + } elsif ($testnum eq 34 or + $testnum eq 457 or + $testnum eq 1417 or + $testnum eq 1493) { + $why = "Expected to fail with Privoxy. Test contains non-standard 'Connection: mooo' header that Privoxy replaces with 'Connection: close'."; } elsif ($testnum eq 46) { $why = "Invalid URL and use of --resolv."; } elsif ($testnum eq 59) { -- To stop receiving notification emails like this one, please contact the administrator of this repository. From git at git.privoxy.org Thu Oct 9 11:51:38 2025 From: git at git.privoxy.org (User Git) Date: Thu, 09 Oct 2025 11:51:38 +0200 Subject: [Privoxy-commits] [privoxy] 16/16: Regenerate curl-test-manifest-for-privoxy In-Reply-To: <176000348289.70512.16562646801924793992@privoxy-git> References: <176000348289.70512.16562646801924793992@privoxy-git> Message-ID: <20251009095148.2978258FB@git.privoxy.org> This is an automated email from the git hooks/post-receive script. git pushed a commit to branch master in repository privoxy. commit dea56ef37ae115249f85aa6728df2ce3dd7877d0 Author: Fabian Keil AuthorDate: Wed Oct 1 11:56:34 2025 +0200 Regenerate curl-test-manifest-for-privoxy --- tests/cts/curl-test-manifest-for-privoxy | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/cts/curl-test-manifest-for-privoxy b/tests/cts/curl-test-manifest-for-privoxy index 35d78400..556084db 100644 --- a/tests/cts/curl-test-manifest-for-privoxy +++ b/tests/cts/curl-test-manifest-for-privoxy @@ -68,6 +68,7 @@ test:3014, 3015: Known to fail. Curl adds a Proxy-Connection header while test e test:309: Known to fail. Uses https and test does not expect the 'Connection established' response from Privoxy test:31, 1105, 1160: Expected to fail. Privoxy normalizes white-space in a cookie. test:339, 347, 1482, 1483, 1591: Chunked transfer with trailers which Privoxy does not understand. Needs investigating. +test:34, 457, 1417, 1493: Expected to fail with Privoxy. Test contains non-standard 'Connection: mooo' header that Privoxy replaces with 'Connection: close'. test:389: Known to fail depending on the DNS resolver on the system as Privoxy does not implement RFC6761 internally. test:412, 413: Known to fail as curl is tunneling the request even though it's vanilla HTTP. test:415: Known to fail. Control code in Content-Length header. -- To stop receiving notification emails like this one, please contact the administrator of this repository.