mirror of
https://github.com/dgtlmoon/changedetection.io.git
synced 2025-12-09 01:25:38 +00:00
CVE-2025-52558 - Fixing XSS in error handling output of watch overview list
This commit is contained in:
@@ -51,6 +51,9 @@ class TestJinja2SSTI(unittest.TestCase):
|
||||
for attempt in attempt_list:
|
||||
self.assertEqual(len(safe_jinja.render(attempt)), 0, f"string test '{attempt}' is correctly empty")
|
||||
|
||||
def test_jinja2_escaped_html(self):
|
||||
x = safe_jinja.render_fully_escaped('woo <a href="https://google.com">dfdfd</a>')
|
||||
self.assertEqual(x, "woo <a href="https://google.com">dfdfd</a>")
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
||||
Reference in New Issue
Block a user