mirror of
https://git.vectorsigma.ru/public/tubearchivist.git
synced 2026-08-04 20:29:36 +00:00
sanitize validate cookie str
This commit is contained in:
@@ -163,9 +163,10 @@ class CookieHandler:
|
||||
self.store_validation(response)
|
||||
|
||||
# update in redis to avoid expiring
|
||||
modified = validator.obs["cookiefile"].getvalue()
|
||||
modified = validator.obs["cookiefile"].getvalue().strip("\x00")
|
||||
if modified:
|
||||
RedisArchivist().set_message("cookie", modified)
|
||||
cookie_clean = modified.strip("\x00")
|
||||
RedisArchivist().set_message("cookie", cookie_clean)
|
||||
|
||||
if not response:
|
||||
mess_dict = {
|
||||
|
||||
Reference in New Issue
Block a user