Skip to content

Commit

Permalink
Merge pull request #732 from openedx/bbeggs/VSF_expiration
Browse files Browse the repository at this point in the history
Correctly union sets while sanitizing HTML.
  • Loading branch information
macdiesel authored Oct 28, 2024
2 parents 72316ce + 182af15 commit 03ad938
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion license_manager/apps/subscriptions/sanitize.py
Original file line number Diff line number Diff line change
@@ -8,7 +8,7 @@ def sanitize_html(html_content):
while disallowing JavaScript and unsafe protocols.
"""
# Define allowed tags and attributes
allowed_tags = set.union(bleach.ALLOWED_TAGS, set({"span"})) # Allow all standard HTML tags
allowed_tags = set.union(set(bleach.ALLOWED_TAGS), {"span"}) # Allow all standard HTML tags
allowed_attrs = {"*": ["className", "class", "style", "id"]}
css_sanitizer = CSSSanitizer(allowed_css_properties=["color", "font-weight"])

0 comments on commit 03ad938

Please sign in to comment.