Wed Nov 30 16:43:32 2022 UTC ()
py-html-sanitizer: updated to 1.9.3

1.9 (2020-01-20)

Added Python 3.8 to the CI matrix.
Be able to keep the <style> tag by adding it to tags.
Added a style check to the CI matrix.

1.8 (2019-11-21)

Actually added support for customizing lxml's autolinking behavior using a dictionary argument.
Stopped removing explicitly allowed attributes.
Removed id from allowed attributes of <a> tags to provide an additional layer of defense against DOM clobbering attacks.
Added an element preprocessor which assigns the id value to the name attribute of anchors if name isn't set or empty. This should provide additional backwards compatibility making the id removal less of a problem when using named anchors.

1.7 (2019-02-19)

Added a system check which validates sanitizer configurations early when using Django.
Fixed an edge case where passing in an empty allowed tags list would unexpectedly and silently not remove any tags at all (because that's the way lxml's cleaner works).
Changed the sanitizer tags, empty and separate options to also accept any iterable, not just sets.
Changed the lru_cache import in the Django module to try functools first.
Fixed the tag merging to also check tags in empty. This means that e.g. consecutive <hr> tags are also merged now when using the default settings.
Made it possible to override the set of tags processed as whitespace. The default set is {"br"} which preserves the current behavior of stripping breaks from the beginning or end of tags' content.


(adam)
diff -r1.7 -r1.8 pkgsrc/textproc/py-html-sanitizer/Makefile
diff -r1.7 -r1.8 pkgsrc/textproc/py-html-sanitizer/distinfo

cvs diff -r1.7 -r1.8 pkgsrc/textproc/py-html-sanitizer/Makefile (expand / switch to unified diff)

--- pkgsrc/textproc/py-html-sanitizer/Makefile 2022/11/09 13:14:17 1.7
+++ pkgsrc/textproc/py-html-sanitizer/Makefile 2022/11/30 16:43:32 1.8
@@ -1,20 +1,21 @@ @@ -1,20 +1,21 @@
1# $NetBSD: Makefile,v 1.7 2022/11/09 13:14:17 joerg Exp $ 1# $NetBSD: Makefile,v 1.8 2022/11/30 16:43:32 adam Exp $
2 2
3DISTNAME= html-sanitizer-1.6.4 3DISTNAME= html_sanitizer-1.9.3
4PKGNAME= ${PYPKGPREFIX}-${DISTNAME} 4PKGNAME= ${PYPKGPREFIX}-${DISTNAME:S/_/-/}
5PKGREVISION= 1 
6CATEGORIES= textproc converters python 5CATEGORIES= textproc converters python
7MASTER_SITES= ${MASTER_SITE_PYPI:=h/html-sanitizer/} 6MASTER_SITES= ${MASTER_SITE_PYPI:=h/html-sanitizer/}
8 7
9MAINTAINER= pkgsrc-users@NetBSD.org 8MAINTAINER= pkgsrc-users@NetBSD.org
10HOMEPAGE= https://github.com/matthiask/html-sanitizer 9HOMEPAGE= https://github.com/matthiask/html-sanitizer
11COMMENT= White-list based HTML sanitizer 10COMMENT= White-list based HTML sanitizer
12LICENSE= modified-bsd 11LICENSE= modified-bsd
13 12
14DEPENDS+= ${PYPKGPREFIX}-beautifulsoup4-[0-9]*:../../www/py-beautifulsoup4 13DEPENDS+= ${PYPKGPREFIX}-beautifulsoup4-[0-9]*:../../www/py-beautifulsoup4
15DEPENDS+= ${PYPKGPREFIX}-lxml>=3.6.1:../../textproc/py-lxml 14DEPENDS+= ${PYPKGPREFIX}-lxml>=4.6.5:../../textproc/py-lxml
16 15
17USE_LANGUAGES= # none 16USE_LANGUAGES= # none
18 17
 18PYTHON_VERSIONS_INCOMPATIBLE= 27
 19
19.include "../../lang/python/egg.mk" 20.include "../../lang/python/egg.mk"
20.include "../../mk/bsd.pkg.mk" 21.include "../../mk/bsd.pkg.mk"

cvs diff -r1.7 -r1.8 pkgsrc/textproc/py-html-sanitizer/distinfo (expand / switch to unified diff)

--- pkgsrc/textproc/py-html-sanitizer/distinfo 2021/10/26 11:23:04 1.7
+++ pkgsrc/textproc/py-html-sanitizer/distinfo 2022/11/30 16:43:32 1.8
@@ -1,5 +1,5 @@ @@ -1,5 +1,5 @@
1$NetBSD: distinfo,v 1.7 2021/10/26 11:23:04 nia Exp $ 1$NetBSD: distinfo,v 1.8 2022/11/30 16:43:32 adam Exp $
2 2
3BLAKE2s (html-sanitizer-1.6.4.tar.gz) = 783ec3f49962ec986777049d2bea3c5826e24ab5adb023b53ef386411810d3ad 3BLAKE2s (html_sanitizer-1.9.3.tar.gz) = 8bd5a2fe7257f3ecd506445a55464132dc857b10863c2c3de3ae8c00ddb5fa75
4SHA512 (html-sanitizer-1.6.4.tar.gz) = dcfd310e93c1b5c752c26921e648bbf53e554df37dd9cf905268508de9efd02ce67ce00f5cbd986d193822382d4e91db54df44d50afbd53f60f308fb6763af6f 4SHA512 (html_sanitizer-1.9.3.tar.gz) = 14b6edf607dfd68934d3ea7075cedd31b37f27f72404e749a71cc3ec2b46bd01a18abbe2830faa4729793f777950be6d585684b0d604f801abb1f6a479ca1303
5Size (html-sanitizer-1.6.4.tar.gz) = 13884 bytes 5Size (html_sanitizer-1.9.3.tar.gz) = 16401 bytes