Date: Sun, 26 Jun 2011 13:52:25 GMT From: Eric Freeman <freebsdports@chillibear.com> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/158312: [NEW PORT] textproc/rubygem-sanitize (Whitelist-based HTML sanitizer) Message-ID: <201106261352.p5QDqPii035248@red.freebsd.org> Resent-Message-ID: <201106261400.p5QE0106075253@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 158312 >Category: ports >Synopsis: [NEW PORT] textproc/rubygem-sanitize (Whitelist-based HTML sanitizer) >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Sun Jun 26 14:00:01 UTC 2011 >Closed-Date: >Last-Modified: >Originator: Eric Freeman >Release: 9.0 >Organization: Sundive Networks >Environment: FreeBSD bsd9.local 9.0-CURRENT-201008 FreeBSD 9.0-CURRENT-201008 #0: Tue Aug 3 20:09:44 UTC 2010 root@farrell.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64 >Description: Simple port of this white-list based HTML sanitizer Ruby gem. >How-To-Repeat: n/a >Fix: # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # rubygem-sanitize # rubygem-sanitize/Makefile # rubygem-sanitize/pkg-descr # rubygem-sanitize/distinfo # echo c - rubygem-sanitize mkdir -p rubygem-sanitize > /dev/null 2>&1 echo x - rubygem-sanitize/Makefile sed 's/^X//' >rubygem-sanitize/Makefile << '9d7c8ca7620ac9a4435351dca4ad2182' X# Ports collection makefile for: rubygem-sanitize X# Date created: 26 June 2011 X# Whom: Eric Freeman <freebsdports@chillibear.com> X# X# $FreeBSD$ X# X XPORTNAME= sanitize XPORTVERSION= 2.0.2 XCATEGORIES= textproc rubygems XMASTER_SITES= RG X XMAINTAINER= freebsdports@chillibear.com XCOMMENT= Whitelist based HTML sanitizer X XRUN_DEPENDS= rubygem-nokogiri>=1.4.4:${PORTSDIR}/textproc/rubygem-nokogiri X XUSE_RUBY= yes XUSE_RUBYGEMS= yes XRUBYGEM_AUTOPLIST= yes X X.include <bsd.port.mk> 9d7c8ca7620ac9a4435351dca4ad2182 echo x - rubygem-sanitize/pkg-descr sed 's/^X//' >rubygem-sanitize/pkg-descr << '207b0215a20f65d36e991be10d397384' XSanitize is a whitelist-based HTML sanitizer. Given a list of Xacceptable elements and attributes, Sanitize will remove all Xunacceptable HTML from a string. X XUsing a simple configuration syntax, you can tell Sanitize to Xallow certain elements, certain attributes within those elements, Xand even certain URL protocols within attributes that contain URLs. XAny HTML elements or attributes that you don't explicitly allow Xwill be removed. X XAuthor: Ryan Grove XWWW: https://github.com/rgrove/sanitize/ XWWW: http://wonko.com/post/sanitize 207b0215a20f65d36e991be10d397384 echo x - rubygem-sanitize/distinfo sed 's/^X//' >rubygem-sanitize/distinfo << 'c6d6a088a1ceb3b4d96f87b1ce73f252' XSHA256 (rubygem/sanitize-2.0.2.gem) = f805fe593ca3c2650401c509c120ae9135dc88b353c0ec15b828743d218df205 XSIZE (rubygem/sanitize-2.0.2.gem) = 14336 c6d6a088a1ceb3b4d96f87b1ce73f252 exit >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201106261352.p5QDqPii035248>