upgrade to attoparsec >= 0.10.0.3
This commit is contained in:
parent
c5e66144f4
commit
a341af4293
@ -66,7 +66,7 @@ html5lib's sanitizer.py is used as a reference implementation, and most of the c
|
||||
|
||||
### 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
|
||||
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
name: xss-sanitize
|
||||
version: 0.3.0.1
|
||||
version: 0.3.1
|
||||
license: BSD3
|
||||
license-file: LICENSE
|
||||
author: Greg Weber <greg@gregweber.info>
|
||||
@ -15,12 +15,12 @@ homepage: http://github.com/gregwebs/haskell-xss-sanitize
|
||||
|
||||
library
|
||||
build-depends: base == 4.*, containers
|
||||
, tagsoup >= 0.12.2
|
||||
, utf8-string >= 0.3
|
||||
, network >= 2
|
||||
, css-text >= 0.1 && < 0.2
|
||||
, text >= 0.11 && < 0.12
|
||||
, attoparsec-text >= 0.8.5.1 && < 0.9
|
||||
, tagsoup >= 0.12.2 && < 1
|
||||
, utf8-string >= 0.3 && < 1
|
||||
, network >= 2 && < 3
|
||||
, css-text >= 0.1.1 && < 0.2
|
||||
, text >= 0.11 && < 1
|
||||
, attoparsec >= 0.10.0.3 && < 1
|
||||
|
||||
|
||||
exposed-modules: Text.HTML.SanitizeXSS
|
||||
@ -31,15 +31,15 @@ test-suite test
|
||||
type: exitcode-stdio-1.0
|
||||
main-is: test/main.hs
|
||||
cpp-options: -DTEST
|
||||
build-depends: base >= 4 && < 5, containers
|
||||
, tagsoup >= 0.12.2
|
||||
, utf8-string >= 0.3
|
||||
, network >= 2
|
||||
, css-text >= 0.1 && < 0.2
|
||||
, text >= 0.11 && < 0.12
|
||||
, attoparsec >= 0.10 && < 0.11
|
||||
, hspec
|
||||
, HUnit >= 1.2
|
||||
build-depends: base == 4.* , containers
|
||||
, tagsoup >= 0.12.2 && < 1
|
||||
, utf8-string >= 0.3 && < 1
|
||||
, network >= 2 && < 3
|
||||
, css-text >= 0.1.1 && < 0.2
|
||||
, text >= 0.11 && < 1
|
||||
, attoparsec >= 0.10.0.3 && < 1
|
||||
, hspec >= 0.8
|
||||
, HUnit >= 1.2
|
||||
|
||||
|
||||
source-repository head
|
||||
|
||||
Loading…
Reference in New Issue
Block a user