upgrade to attoparsec >= 0.10.0.3

This commit is contained in:
Greg Weber 2011-11-29 07:51:24 -06:00
parent c5e66144f4
commit a341af4293
2 changed files with 17 additions and 17 deletions

View File

@ -66,7 +66,7 @@ html5lib's sanitizer.py is used as a reference implementation, and most of the c
### style attribute ### style attribute
style attributes are now parsed with the css-text and autoparsec-text dependencies. They are then ran through a white list for properties and keywords. Whitespace is not preserved. This code was again translated from sanitizer.py, but uses attopoarsec-text instead of regexes. If you don't care about stripping css you can avoid an attoparsec-text dependending on the older < 0.3 version of this library. style attributes are now parsed with the css-text and autoparsec-text dependencies. They are then ran through a white list for properties and keywords. Whitespace is not preserved. This code was again translated from sanitizer.py, but uses attopoarsec instead of regexes. If you don't care about stripping css you can avoid an attoparsec dependending on the older < 0.3 version of this library.
### data attributes ### data attributes

View File

@ -1,5 +1,5 @@
name: xss-sanitize name: xss-sanitize
version: 0.3.0.1 version: 0.3.1
license: BSD3 license: BSD3
license-file: LICENSE license-file: LICENSE
author: Greg Weber <greg@gregweber.info> author: Greg Weber <greg@gregweber.info>
@ -15,12 +15,12 @@ homepage: http://github.com/gregwebs/haskell-xss-sanitize
library library
build-depends: base == 4.*, containers build-depends: base == 4.*, containers
, tagsoup >= 0.12.2 , tagsoup >= 0.12.2 && < 1
, utf8-string >= 0.3 , utf8-string >= 0.3 && < 1
, network >= 2 , network >= 2 && < 3
, css-text >= 0.1 && < 0.2 , css-text >= 0.1.1 && < 0.2
, text >= 0.11 && < 0.12 , text >= 0.11 && < 1
, attoparsec-text >= 0.8.5.1 && < 0.9 , attoparsec >= 0.10.0.3 && < 1
exposed-modules: Text.HTML.SanitizeXSS exposed-modules: Text.HTML.SanitizeXSS
@ -31,15 +31,15 @@ test-suite test
type: exitcode-stdio-1.0 type: exitcode-stdio-1.0
main-is: test/main.hs main-is: test/main.hs
cpp-options: -DTEST cpp-options: -DTEST
build-depends: base >= 4 && < 5, containers build-depends: base == 4.* , containers
, tagsoup >= 0.12.2 , tagsoup >= 0.12.2 && < 1
, utf8-string >= 0.3 , utf8-string >= 0.3 && < 1
, network >= 2 , network >= 2 && < 3
, css-text >= 0.1 && < 0.2 , css-text >= 0.1.1 && < 0.2
, text >= 0.11 && < 0.12 , text >= 0.11 && < 1
, attoparsec >= 0.10 && < 0.11 , attoparsec >= 0.10.0.3 && < 1
, hspec , hspec >= 0.8
, HUnit >= 1.2 , HUnit >= 1.2
source-repository head source-repository head