pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/textproc/py-html-sanitizer



Module Name:    pkgsrc
Committed By:   adam
Date:           Wed Nov 30 16:43:32 UTC 2022

Modified Files:
        pkgsrc/textproc/py-html-sanitizer: Makefile distinfo

Log Message:
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.


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 pkgsrc/textproc/py-html-sanitizer/Makefile \
    pkgsrc/textproc/py-html-sanitizer/distinfo

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/textproc/py-html-sanitizer/Makefile
diff -u pkgsrc/textproc/py-html-sanitizer/Makefile:1.7 pkgsrc/textproc/py-html-sanitizer/Makefile:1.8
--- pkgsrc/textproc/py-html-sanitizer/Makefile:1.7      Wed Nov  9 13:14:17 2022
+++ pkgsrc/textproc/py-html-sanitizer/Makefile  Wed Nov 30 16:43:32 2022
@@ -1,8 +1,7 @@
-# $NetBSD: Makefile,v 1.7 2022/11/09 13:14:17 joerg Exp $
+# $NetBSD: Makefile,v 1.8 2022/11/30 16:43:32 adam Exp $
 
-DISTNAME=      html-sanitizer-1.6.4
-PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
-PKGREVISION=   1
+DISTNAME=      html_sanitizer-1.9.3
+PKGNAME=       ${PYPKGPREFIX}-${DISTNAME:S/_/-/}
 CATEGORIES=    textproc converters python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=h/html-sanitizer/}
 
@@ -12,9 +11,11 @@ COMMENT=     White-list based HTML sanitizer
 LICENSE=       modified-bsd
 
 DEPENDS+=      ${PYPKGPREFIX}-beautifulsoup4-[0-9]*:../../www/py-beautifulsoup4
-DEPENDS+=      ${PYPKGPREFIX}-lxml>=3.6.1:../../textproc/py-lxml
+DEPENDS+=      ${PYPKGPREFIX}-lxml>=4.6.5:../../textproc/py-lxml
 
 USE_LANGUAGES= # none
 
+PYTHON_VERSIONS_INCOMPATIBLE=  27
+
 .include "../../lang/python/egg.mk"
 .include "../../mk/bsd.pkg.mk"
Index: pkgsrc/textproc/py-html-sanitizer/distinfo
diff -u pkgsrc/textproc/py-html-sanitizer/distinfo:1.7 pkgsrc/textproc/py-html-sanitizer/distinfo:1.8
--- pkgsrc/textproc/py-html-sanitizer/distinfo:1.7      Tue Oct 26 11:23:04 2021
+++ pkgsrc/textproc/py-html-sanitizer/distinfo  Wed Nov 30 16:43:32 2022
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.7 2021/10/26 11:23:04 nia Exp $
+$NetBSD: distinfo,v 1.8 2022/11/30 16:43:32 adam Exp $
 
-BLAKE2s (html-sanitizer-1.6.4.tar.gz) = 783ec3f49962ec986777049d2bea3c5826e24ab5adb023b53ef386411810d3ad
-SHA512 (html-sanitizer-1.6.4.tar.gz) = dcfd310e93c1b5c752c26921e648bbf53e554df37dd9cf905268508de9efd02ce67ce00f5cbd986d193822382d4e91db54df44d50afbd53f60f308fb6763af6f
-Size (html-sanitizer-1.6.4.tar.gz) = 13884 bytes
+BLAKE2s (html_sanitizer-1.9.3.tar.gz) = 8bd5a2fe7257f3ecd506445a55464132dc857b10863c2c3de3ae8c00ddb5fa75
+SHA512 (html_sanitizer-1.9.3.tar.gz) = 14b6edf607dfd68934d3ea7075cedd31b37f27f72404e749a71cc3ec2b46bd01a18abbe2830faa4729793f777950be6d585684b0d604f801abb1f6a479ca1303
+Size (html_sanitizer-1.9.3.tar.gz) = 16401 bytes



Home | Main Index | Thread Index | Old Index