Fixed a regression in key handling in the sanitizer.

This commit is contained in:
Armin Ronacher 2016-01-21 10:38:47 -08:00
parent d3c1c1fcb6
commit 005a6d9d3d
1 changed files with 3 additions and 1 deletions

View File

@ -9,7 +9,7 @@ from __future__ import absolute_import
import re
from raven._compat import string_types
from raven._compat import string_types, text_type
from raven.utils import varmap
@ -98,6 +98,8 @@ class SanitizePasswordsProcessor(Processor):
# properly without failing so we can perform our check.
if isinstance(key, bytes):
key = key.decode('utf-8', 'replace')
else:
key = text_type(key)
key = key.lower()
for field in self.FIELDS: