From 357e68207703bb6ef296570f6d3496d26d2cb867 Mon Sep 17 00:00:00 2001 From: Aevann Date: Wed, 9 Aug 2023 18:48:38 +0300 Subject: [PATCH] whitelist all pullpush.io parameters --- files/helpers/sanitize.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/files/helpers/sanitize.py b/files/helpers/sanitize.py index fdedbab30..20b742600 100644 --- a/files/helpers/sanitize.py +++ b/files/helpers/sanitize.py @@ -706,9 +706,11 @@ def filter_emojis_only(title, golden=True, count_emojis=False, graceful=False): return title.strip() def is_whitelisted(domain, k): + if domain.endswith('pullpush.io'): + return True if 'sort' in k.lower() or 'query' in k.lower(): return True - if k in {'_x_tr_hl','_x_tr_pto','_x_tr_sl','_x_tr_tl','abstract_id','after','article','author','bill_id','comments','context','count','f','fbid','format','forum_id','i','ID','id','lb','list','oldid','p','page','post_id','postid','q','run','scrollToComments','search','size','sl','sp','story_fbid','tab','term','text','thread_id','threadid','ticket_form_id','time_continue','title','title_no','tl','token','topic','type','u','udca','url','v','vid','viewkey'}: + if k in {'_x_tr_hl','_x_tr_pto','_x_tr_sl','_x_tr_tl','abstract_id','after','article','bill_id','comments','context','count','f','fbid','format','forum_id','i','ID','id','lb','list','oldid','p','page','post_id','postid','q','run','scrollToComments','search','sl','sp','story_fbid','tab','term','text','thread_id','threadid','ticket_form_id','time_continue','title','title_no','tl','token','topic','type','u','udca','url','v','vid','viewkey'}: return True if k == 't' and domain != 'twitter.com': return True