diff options
| author | Martin Neubauer <m.ne@gmx.net> | 2022-11-19 19:29:56 +0000 |
|---|---|---|
| committer | Koichiro Iwao <meta@FreeBSD.org> | 2022-11-29 09:20:09 +0000 |
| commit | 3f81d34c3eec1933b7802b2c2f5ea8a1f9883494 (patch) | |
| tree | 1de0d7f0cbe700de0b72dd4967640526acb88a85 | |
| parent | b8e3bc2cd0173736f7dd719d7dad8fea7f901f28 (diff) | |
www/p5-HTML-Defang: New port: HTML::Defang - Cleans HTML as well as CSS of scripting
This module accepts an input HTML and/or CSS string and removes any
executable code including scripting, embedded objects, applets, etc.,
and neutralises any XSS attacks. A whitelist based approach is used
which means only HTML known to be safe is allowed through.
PR: 267880
| -rw-r--r-- | www/Makefile | 1 | ||||
| -rw-r--r-- | www/p5-HTML-Defang/Makefile | 19 | ||||
| -rw-r--r-- | www/p5-HTML-Defang/distinfo | 3 | ||||
| -rw-r--r-- | www/p5-HTML-Defang/pkg-descr | 4 | ||||
| -rw-r--r-- | www/p5-HTML-Defang/pkg-plist | 2 |
5 files changed, 29 insertions, 0 deletions
diff --git a/www/Makefile b/www/Makefile index 9725bfcd69da..4350f0cb660e 100644 --- a/www/Makefile +++ b/www/Makefile @@ -788,6 +788,7 @@ SUBDIR += p5-HTML-ContentExtractor SUBDIR += p5-HTML-DOM SUBDIR += p5-HTML-Declare + SUBDIR += p5-HTML-Defang SUBDIR += p5-HTML-Defaultify SUBDIR += p5-HTML-Diff SUBDIR += p5-HTML-Display diff --git a/www/p5-HTML-Defang/Makefile b/www/p5-HTML-Defang/Makefile new file mode 100644 index 000000000000..7dfed473e357 --- /dev/null +++ b/www/p5-HTML-Defang/Makefile @@ -0,0 +1,19 @@ +PORTNAME= HTML-Defang +PORTVERSION= 1.07 +CATEGORIES= www perl5 +MASTER_SITES= CPAN +PKGNAMEPREFIX= p5- + +MAINTAINER= m.ne@gmx.net +COMMENT= Cleans HTML of executable contents, and neutralises XSS attacks +WWW= https://metacpan.org/dist/HTML-Defang + +LICENSE= ART10 GPLv1+ +LICENSE_COMB= dual + +USES= perl5 +USE_PERL5= configure + +NO_ARCH= yes + +.include <bsd.port.mk> diff --git a/www/p5-HTML-Defang/distinfo b/www/p5-HTML-Defang/distinfo new file mode 100644 index 000000000000..87885ed23e88 --- /dev/null +++ b/www/p5-HTML-Defang/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1667040189 +SHA256 (HTML-Defang-1.07.tar.gz) = 882dc4a9dcfae8799235f4bad0062ee55ddbe408be1a5e4a7574b262e3fe07ce +SIZE (HTML-Defang-1.07.tar.gz) = 46222 diff --git a/www/p5-HTML-Defang/pkg-descr b/www/p5-HTML-Defang/pkg-descr new file mode 100644 index 000000000000..44b395a6e94b --- /dev/null +++ b/www/p5-HTML-Defang/pkg-descr @@ -0,0 +1,4 @@ +This module accepts an input HTML and/or CSS string and removes any +executable code including scripting, embedded objects, applets, etc., +and neutralises any XSS attacks. A whitelist based approach is used +which means only HTML known to be safe is allowed through. diff --git a/www/p5-HTML-Defang/pkg-plist b/www/p5-HTML-Defang/pkg-plist new file mode 100644 index 000000000000..2f4ebb8beff0 --- /dev/null +++ b/www/p5-HTML-Defang/pkg-plist @@ -0,0 +1,2 @@ +%%SITE_PERL%%/HTML/Defang.pm +%%PERL5_MAN3%%/HTML::Defang.3.gz |
