[twitter] revert generated CSRF token length to 32 characters (#6895)
revert d9c4fcc7fa
This commit is contained in:
@@ -1065,7 +1065,7 @@ class TwitterAPI():
|
|||||||
else:
|
else:
|
||||||
csrf_token = None
|
csrf_token = None
|
||||||
if not csrf_token:
|
if not csrf_token:
|
||||||
csrf_token = util.generate_token(80)
|
csrf_token = util.generate_token()
|
||||||
cookies.set("ct0", csrf_token, domain=cookies_domain)
|
cookies.set("ct0", csrf_token, domain=cookies_domain)
|
||||||
|
|
||||||
auth_token = cookies.get("auth_token", domain=cookies_domain)
|
auth_token = cookies.get("auth_token", domain=cookies_domain)
|
||||||
|
|||||||
@@ -6,5 +6,5 @@
|
|||||||
# it under the terms of the GNU General Public License version 2 as
|
# it under the terms of the GNU General Public License version 2 as
|
||||||
# published by the Free Software Foundation.
|
# published by the Free Software Foundation.
|
||||||
|
|
||||||
__version__ = "1.28.5"
|
__version__ = "1.29.0-dev"
|
||||||
__variant__ = None
|
__variant__ = None
|
||||||
|
|||||||
Reference in New Issue
Block a user