Skip to content

Commit

Permalink
Fix #18199
Browse files Browse the repository at this point in the history
  • Loading branch information
andresriancho committed Nov 18, 2019
1 parent 6d3694f commit ac83ce7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions w3af/core/data/url/opener_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ def set_basic_auth(self, url, username, password):
' (eg. www.target.com)')
raise BaseFrameworkException(msg)
else:
if not hasattr(self, '_password_mgr'):
if self._password_mgr is None:
# Create a new password manager
self._password_mgr = urllib2.HTTPPasswordMgrWithDefaultRealm()

Expand Down Expand Up @@ -350,7 +350,7 @@ def set_ntlm_auth(self, url, ntlm_domain, username, password):
cfg.save('ntlm_auth_user', username)
cfg.save('ntlm_auth_url', url)

if not hasattr(self, '_password_mgr'):
if self._password_mgr is None:
# create a new password manager
self._password_mgr = urllib2.HTTPPasswordMgrWithDefaultRealm()

Expand Down

0 comments on commit ac83ce7

Please sign in to comment.