sed_https(): Clear the existing tags before calling sed()
[privoxy.git] / parsers.c
index 2812161..6f58c10 100644 (file)
--- a/parsers.c
+++ b/parsers.c
@@ -1215,6 +1215,13 @@ jb_err sed_https(struct client_state *csp)
    csp->headers->first = csp->https_headers->first;
    csp->headers->last  = csp->https_headers->last;
 
+   /*
+    * Start with fresh tags. Already exising tags may
+    * be set again. This is necessary to overrule
+    * URL-based patterns.
+    */
+   destroy_list(csp->tags);
+
    /*
     * We want client header filters and taggers
     * so temporarly remove the flag.