Skip to content

Commit

Permalink
Fix UnicodeDecodeError
Browse files Browse the repository at this point in the history
  • Loading branch information
andresriancho committed Oct 21, 2019
1 parent 8eef004 commit e1b6f5f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion w3af/core/controllers/plugins/auth_session_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
"""
from w3af.core.controllers.plugins.auth_plugin import AuthPlugin
from w3af.core.data.misc.encoding import smart_str_ignore


class AuthSessionPlugin(AuthPlugin):
Expand Down Expand Up @@ -62,7 +63,7 @@ def has_active_session(self):
self._log_http_response(http_response)

body = http_response.get_body()
logged_in = self.check_string in body
logged_in = smart_str_ignore(self.check_string) in smart_str_ignore(body)

msg_yes = 'User "%s" is currently logged into the application'
msg_yes %= (self.username,)
Expand Down

0 comments on commit e1b6f5f

Please sign in to comment.