0001-sessions-protect-against-non-ascii-signatures-33085.patch
wcs/qommon/sessions.py | ||
---|---|---|
303 | 303 |
signer = self.get_signer() |
304 | 304 |
try: |
305 | 305 |
value = signer.unsign(token) |
306 |
except BadSignature:
|
|
306 |
except (BadSignature, UnicodeDecodeError):
|
|
307 | 307 |
return None |
308 | 308 |
dirname = os.path.join(get_publisher().app_dir, 'tempfiles') |
309 | 309 |
filename = os.path.join(dirname, value + '.json') |
310 |
- |