You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My theory is that this is due to not being strict (no pun intended) with booleans in the code here, where we have
def down_or_redirects(endpoint):
return ((not endpoint.live) or endpoint.redirect_immediately_to_https)
which will return None if live = True and redirect_immediately_to_https = None, since this evaluates to False or None, which is itself None. Very similar to #49.
Anyway, thanks for reading. Hope this all makes sense. There is a comment on the other ticket about wanting all fields to be either true or false, so I think this issue could be considered a bug under that definition.
The text was updated successfully, but these errors were encountered:
Hi,
I've noticed that for some sites I'm scanning, the Strictly Forces HTTPS field is sometimes
null
. I suspect this is for similar reasons as #49.Here's a representative example:
results in (some fields snipped for brevity):
My theory is that this is due to not being strict (no pun intended) with booleans in the code here, where we have
which will return
None
iflive = True
andredirect_immediately_to_https = None
, since this evaluates toFalse or None
, which is itselfNone
. Very similar to #49.Anyway, thanks for reading. Hope this all makes sense. There is a comment on the other ticket about wanting all fields to be either true or false, so I think this issue could be considered a bug under that definition.
The text was updated successfully, but these errors were encountered: