Update remove_get_trackers plugin to only detect GET parameters in a URL context
This commit is contained in:
parent
9df7a439e8
commit
cd2adbbc3b
1 changed files with 2 additions and 2 deletions
|
@ -17,6 +17,6 @@ class Plugin(BasePlugin):
|
||||||
# ref_src, ref_url: twitter
|
# ref_src, ref_url: twitter
|
||||||
# Others exist but are excluded because they are not common.
|
# Others exist but are excluded because they are not common.
|
||||||
# See https://en.wikipedia.org/wiki/UTM_parameters
|
# See https://en.wikipedia.org/wiki/UTM_parameters
|
||||||
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)=[^ &#]*',
|
||||||
'',
|
r'\1',
|
||||||
msg['body'])
|
msg['body'])
|
||||||
|
|
Loading…
Reference in a new issue