From c33798965f97b100711f36f40c79ba198c6a6b0b Mon Sep 17 00:00:00 2001 From: Aevann Date: Wed, 15 Nov 2023 14:52:42 +0200 Subject: [PATCH] add route to whitelisted keys --- files/helpers/sanitize.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/helpers/sanitize.py b/files/helpers/sanitize.py index 1dcae2d7c..6d1a0fa04 100644 --- a/files/helpers/sanitize.py +++ b/files/helpers/sanitize.py @@ -718,7 +718,7 @@ def is_whitelisted(domain, k): 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','bill_id','c','clip','commentID','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','tz1','tz2','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','c','clip','commentID','comments','context','count','f','fbid','format','forum_id','i','ID','id','lb','list','oldid','p','page','post_id','postid','q','route','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','tz1','tz2','u','udca','url','v','vid','viewkey'}: return True if k == 't' and domain != 'twitter.com': return True