We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
parse_cookie_str
cookie_str = 'true'
Hi!
I stumbled upon a crash report ValueError: not enough values to unpack (expected 2, got 1) in Sentry from django-cookie-consent code line…
ValueError: not enough values to unpack (expected 2, got 1)
django-cookie-consent/cookie_consent/util.py
Line 15 in 81aae63
…today. cookie_str has value "true" in this case, and playing with IPython shows how the current code breaks:
cookie_str
"true"
In [1]: 'foo=bar'.split('=') Out[1]: ['foo', 'bar'] In [2]: ''.split('=') Out[2]: [''] In [3]: 'true'.split('=') Out[3]: ['true']
The issue still exists on master so until this is fixed, Django setups can be crashed like this. Would be great to have fixed, thank you!
master
Best, Sebastian
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hi!
I stumbled upon a crash report
ValueError: not enough values to unpack (expected 2, got 1)
in Sentry from django-cookie-consent code line…django-cookie-consent/cookie_consent/util.py
Line 15 in 81aae63
…today.
cookie_str
has value"true"
in this case, and playing with IPython shows how the current code breaks:The issue still exists on
master
so until this is fixed, Django setups can be crashed like this. Would be great to have fixed, thank you!Best, Sebastian
The text was updated successfully, but these errors were encountered: