diff --git a/base_requirements.txt b/base_requirements.txt index c1e2fed7f..1e9a45048 100644 --- a/base_requirements.txt +++ b/base_requirements.txt @@ -1,6 +1,6 @@ # HTML sanitizer # https://github.com/mozilla/bleach/blob/main/CHANGES -bleach<6.0 +bleach # Python client for Amazon AWS API # https://github.com/boto/boto3/blob/develop/CHANGELOG.rst @@ -137,8 +137,7 @@ social-auth-core # Django app for social-auth-core # https://github.com/python-social-auth/social-app-django/blob/master/CHANGELOG.md -# See https://github.com/python-social-auth/social-app-django/issues/429 -social-auth-app-django==5.0.0 +social-auth-app-django # SVG image rendering (used for rack elevations) # hhttps://github.com/mozman/svgwrite/blob/master/NEWS.rst diff --git a/netbox/utilities/utils.py b/netbox/utilities/utils.py index 57092bb7d..b1504e62f 100644 --- a/netbox/utilities/utils.py +++ b/netbox/utilities/utils.py @@ -491,14 +491,14 @@ def clean_html(html, schemes): Also takes a list of allowed URI schemes. """ - ALLOWED_TAGS = [ + ALLOWED_TAGS = { "div", "pre", "code", "blockquote", "del", "hr", "h1", "h2", "h3", "h4", "h5", "h6", "ul", "ol", "li", "p", "br", "strong", "em", "a", "b", "i", "img", "table", "thead", "tbody", "tr", "th", "td", "dl", "dt", "dd", - ] + } ALLOWED_ATTRIBUTES = { "div": ['class'], diff --git a/requirements.txt b/requirements.txt index 024905a35..191399bd3 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,4 +1,4 @@ -bleach==5.0.1 +bleach==6.0.0 boto3==1.26.115 Django==4.1.8 django-cors-headers==3.14.0 @@ -35,6 +35,3 @@ social-auth-core[openidconnect]==4.4.2 svgwrite==1.4.3 tablib==3.4.0 tzdata==2023.3 - -# Workaround for #7401 -jsonschema==3.2.0