diff options
Diffstat (limited to 'debug_toolbar/panels/sql')
| -rw-r--r-- | debug_toolbar/panels/sql/forms.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/debug_toolbar/panels/sql/forms.py b/debug_toolbar/panels/sql/forms.py index 582f611..58a4dba 100644 --- a/debug_toolbar/panels/sql/forms.py +++ b/debug_toolbar/panels/sql/forms.py @@ -80,7 +80,7 @@ class SQLSelectForm(forms.Form): items = [settings.SECRET_KEY, data['sql'], data['params']] # Replace lines endings with spaces to preserve the hash value # even when the browser normalizes \r\n to \n in inputs. - items = [force_text(' '.join(item.splitlines())) for item in items] + items = [' '.join(force_text(item).splitlines()) for item in items] return hashlib.sha1(''.join(items).encode('utf-8')).hexdigest() @property |
