diff --git a/webapp/tests/base.py b/webapp/tests/base.py index 844f28ead..ebd894354 100644 --- a/webapp/tests/base.py +++ b/webapp/tests/base.py @@ -4,9 +4,9 @@ def is_unsafe_str(s): for symbol in '<>': - if s.find(symbol) > 0: + if s.find(symbol) >= 0: return True - return False + return False class TestCase(OriginalTestCase): diff --git a/webapp/tests/test_xss.py b/webapp/tests/test_xss.py index f5ee5d317..da9d17eed 100644 --- a/webapp/tests/test_xss.py +++ b/webapp/tests/test_xss.py @@ -29,7 +29,7 @@ def test_render_xss(self): xssStr = '