mirror of
https://github.com/tubearchivist/tubearchivist.git
synced 2025-03-12 08:50:13 +00:00
sanitize validate cookie str
This commit is contained in:
parent
3aa41232db
commit
8f22d0d9e2
@ -163,9 +163,10 @@ class CookieHandler:
|
|||||||
self.store_validation(response)
|
self.store_validation(response)
|
||||||
|
|
||||||
# update in redis to avoid expiring
|
# update in redis to avoid expiring
|
||||||
modified = validator.obs["cookiefile"].getvalue()
|
modified = validator.obs["cookiefile"].getvalue().strip("\x00")
|
||||||
if modified:
|
if modified:
|
||||||
RedisArchivist().set_message("cookie", modified)
|
cookie_clean = modified.strip("\x00")
|
||||||
|
RedisArchivist().set_message("cookie", cookie_clean)
|
||||||
|
|
||||||
if not response:
|
if not response:
|
||||||
mess_dict = {
|
mess_dict = {
|
||||||
|
Loading…
Reference in New Issue
Block a user