thumblemonks-inquisition 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/LICENSE +20 -0
- data/README.rdoc +24 -0
- data/VERSION.yml +4 -0
- data/lib/html5lib_sanitize.rb +2453 -0
- data/lib/inquisition.rb +43 -0
- data/test/inquisition_test.rb +37 -0
- data/test/lib/animal.rb +13 -0
- data/test/lib/whisky.rb +14 -0
- data/test/performance.rb +29 -0
- data/test/test_helper.rb +14 -0
- metadata +65 -0
data/LICENSE
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
Copyright (c) 2009 toothrot
|
2
|
+
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
4
|
+
a copy of this software and associated documentation files (the
|
5
|
+
"Software"), to deal in the Software without restriction, including
|
6
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
7
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
8
|
+
permit persons to whom the Software is furnished to do so, subject to
|
9
|
+
the following conditions:
|
10
|
+
|
11
|
+
The above copyright notice and this permission notice shall be
|
12
|
+
included in all copies or substantial portions of the Software.
|
13
|
+
|
14
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
15
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
16
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
17
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
18
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
19
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
20
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.rdoc
ADDED
@@ -0,0 +1,24 @@
|
|
1
|
+
= inquisition
|
2
|
+
|
3
|
+
== Introduction
|
4
|
+
|
5
|
+
Inquisition will sanitize HTML as to help avoid cross site scripting attacks!
|
6
|
+
It keeps your strings heresy-free.
|
7
|
+
|
8
|
+
== How
|
9
|
+
|
10
|
+
Inquisition offers you three methods on Object:
|
11
|
+
|
12
|
+
cleanse_attr *attributes
|
13
|
+
cleanse_attr_reader *attributes
|
14
|
+
cleanse_attr_writer *attributes
|
15
|
+
|
16
|
+
These methods will wrap your getters and/or setters for an attribute through a
|
17
|
+
HTML5 Sanitizer. This should help to protect against most kinds of cross site
|
18
|
+
scripting attacks.
|
19
|
+
|
20
|
+
== Copyright
|
21
|
+
|
22
|
+
lib/html5lib_sanitize.rb Copyright (c) Jacques Distler
|
23
|
+
|
24
|
+
Everything else is Copyright (c) 2009 Alexander Rakoczy. See LICENSE for details.
|
data/VERSION.yml
ADDED