From: Fabian Keil <fk@fabiankeil.de>
Date: Sun, 27 Aug 2023 10:39:22 +0000 (+0200)
Subject: Add a regression test for left-anchored path patterns
X-Git-Tag: v_4_0_0~153
X-Git-Url: http://www.privoxy.org/gitweb/@default-cgi@/static/developer-manual/faq/@default-cgi@show-url-info?a=commitdiff_plain;h=87253c999d5628a6e9287bb0cc613d7b44bcec09;p=privoxy.git

Add a regression test for left-anchored path patterns
---

diff --git a/regression-tests.action b/regression-tests.action
index 9d419917..92b4388b 100644
--- a/regression-tests.action
+++ b/regression-tests.action
@@ -1157,3 +1157,8 @@ PCRE-HOST-PATTERN:^a{3}\.example\.org$
 # Blocked URL = http://bbb.example.org/
 # Level = 26
 PCRE-HOST-PATTERN:^(bbb|ccc|ddd)\.example\.org$
+
+{+block{Block should not apply because the path pattern is left-anchored}}
+# Sticky Actions = -block
+# URL = http://www.example.org/tralala/blafasel
+www.example.org/blafasel