Skip to content

Commit 724d248

Browse files
committed
fix(str): ensure we are using string
Signed-off-by: Felipe Zipitria <felipe.zipitria@owasp.org>
1 parent a895cd9 commit 724d248

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ftw/ruleset.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ def __init__(self, raw_request=None,
120120
if 'Content-Type' in list(headers.keys()):
121121
if headers['Content-Type'] == \
122122
'application/x-www-form-urlencoded' and stop_magic is False:
123-
if unquote(self.data) == self.data:
123+
if util.ensure_str(unquote(self.data)) == self.data:
124124
query_string = parse_qsl(self.data)
125125
if len(query_string) != 0:
126126
encoded_args = urlencode(query_string)

0 commit comments

Comments
 (0)