mirror of
https://github.com/maziggy/bambuddy.git
synced 2026-10-18 03:54:17 +02:00
Address code review feedback - simplify XSS assertion
Co-authored-by: cadtoolbox <12723486+cadtoolbox@users.noreply.github.com>
This commit is contained in:
co-authored by
cadtoolbox
parent
3bbd1eb199
commit
0cc40088bf
@@ -159,4 +159,5 @@ class TestEmailTemplateFormatting:
|
||||
|
||||
# Verify that script tags are escaped
|
||||
assert "<script>" in html_body
|
||||
assert "<script>" not in html_body or html_body.count("<script>") == 0 # No unescaped script tags
|
||||
# Verify no unescaped script tags
|
||||
assert "<script>" not in html_body
|
||||
|
||||
Reference in New Issue
Block a user