Skip to content

Commit

Permalink
include maurits review
Browse files Browse the repository at this point in the history
  • Loading branch information
gotcha committed Jan 29, 2018
1 parent 55ee246 commit 01aaedf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/AccessControl/tainted.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@

def should_be_tainted(value):
if isinstance(value, int):
# ord('<') is 60
return 60 == value
elif isinstance(value, bytes):
if six.PY2:
Expand Down Expand Up @@ -193,6 +194,7 @@ class TaintedBytes(TaintedString):

def __init__(self, value):
if isinstance(value, int):
assert six.PY3
value = bytes([value])
self._value = value

Expand Down

0 comments on commit 01aaedf

Please sign in to comment.