mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-08 06:00:51 -07:00
Sanitize player name
This commit is contained in:
parent
8c4292f9ac
commit
b47ccd06f9
5 changed files with 35 additions and 14 deletions
|
@ -430,3 +430,9 @@ def process_json_kwargs(json_kwargs):
|
|||
params = json.loads(json_kwargs)
|
||||
|
||||
return params
|
||||
|
||||
def sanitize(string):
|
||||
if string:
|
||||
return str(string).replace('<','<').replace('>','>')
|
||||
else:
|
||||
return ''
|
Loading…
Add table
Add a link
Reference in a new issue