Skip to content

Commit

Permalink
[twitter] generate longer CSRF token values
Browse files Browse the repository at this point in the history
  • Loading branch information
mikf committed Jan 21, 2025
1 parent 105c027 commit d9c4fcc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gallery_dl/extractor/twitter.py
Original file line number Diff line number Diff line change
Expand Up @@ -1039,7 +1039,7 @@ def __init__(self, extractor):
else:
csrf_token = None
if not csrf_token:
csrf_token = util.generate_token()
csrf_token = util.generate_token(80)
cookies.set("ct0", csrf_token, domain=cookies_domain)

auth_token = cookies.get("auth_token", domain=cookies_domain)
Expand Down

0 comments on commit d9c4fcc

Please sign in to comment.