Commit cd2adbbc authored by Célestin Matte's avatar Célestin Matte

Update remove_get_trackers plugin to only detect GET parameters in a URL context

parent 9df7a439
......@@ -17,6 +17,6 @@ class Plugin(BasePlugin):
# ref_src, ref_url: twitter
# Others exist but are excluded because they are not common.
# See
msg['body'] = re.sub('&?(fbclid|dclid|ncid|utm_source|utm_medium|utm_campaign|utm_term|utm_content|ref_src|ref_url)=[^ &#]*',
msg['body'] = re.sub('(https?://[^ ]+)&?(fbclid|dclid|ncid|utm_source|utm_medium|utm_campaign|utm_term|utm_content|ref_src|ref_url)=[^ &#]*',
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment