clear session files

This commit is contained in:
Usman Nasir
2022-08-20 15:56:50 +05:00
parent 17821ad6ea
commit 7818675685
3 changed files with 16 additions and 9 deletions

View File

@@ -71,7 +71,7 @@ class secMiddleware:
final_json = json.dumps(final_dic)
return HttpResponse(final_json)
if hasattr(value, "__len__"):
if type(value) == list:
for items in value:
if items.find('- -') > -1 or items.find('\n') > -1 or items.find(';') > -1 or items.find(
'&&') > -1 or items.find('|') > -1 or items.find('...') > -1 \