diff -Nru ruby-whitewash-1.0/ChangeLog ruby-whitewash-2.0/ChangeLog
--- ruby-whitewash-1.0/ChangeLog 2011-09-14 14:25:43.000000000 +0000
+++ ruby-whitewash-2.0/ChangeLog 2011-12-25 14:28:54.000000000 +0000
@@ -1,64 +1,179 @@
------------------------------------------------------------------
-Revision: 43067aa79f57dfb92165fd94da151d45f56ed87c
-Ancestor: 3a0dff129b6a5408055b65dd804f3831d8d16f15
-Author: angdraug@debian.org
-Date: 2009-08-22T12:36:05
-Branch: whitewash-head
+commit 256dd59efc4cc0997e401c842134685efc838f1f (HEAD, tag: v2.0, origin/master, bejbus/master, master)
+Author: anonymous
+Date: Sun Nov 13 21:23:34 2011 +0300
-Modified files:
- lib/whitewash.rb
+ Add new and rehabilitated to html5 whitelist
-ChangeLog:
+ data/whitewash/html5_whitelist.yaml | 2 ++
+ 1 files changed, 2 insertions(+), 0 deletions(-)
-wrap global variables handling in Thread.exclusive
+commit 705380b4a6a3ee70f3847125a0ee56399f015951
+Author: anonymous
+Date: Thu Nov 10 18:34:35 2011 +0300
------------------------------------------------------------------
-Revision: 3a0dff129b6a5408055b65dd804f3831d8d16f15
-Ancestor: b544d3c9fe594e3862cf518ae51421e1f3816cc9
-Author: angdraug@debian.org
-Date: 2009-08-13T11:01:26
-Branch: whitewash-head
+ Remove dead code.
+
+ This code will never be reached without config.strict, so remove it.
-Modified files:
- README.rdoc lib/whitewash.rb
+ lib/whitewash.rb | 8 ++------
+ 1 files changed, 2 insertions(+), 6 deletions(-)
-ChangeLog:
+commit bb6fe4ad5478867995b8248481d8761f93f733e3
+Author: anonymous
+Date: Tue Nov 8 22:25:06 2011 +0300
-made it easier to override tidypath
+ Nokogiri::NodeSet has to_xhtml too
- * made default_whitelist a public class method so that it can be used
- in Whitewash.new() invokation
- * documented the way Whitewash looks for Tidy
+ lib/whitewash.rb | 2 +-
+ 1 files changed, 1 insertions(+), 1 deletions(-)
------------------------------------------------------------------
-Revision: b544d3c9fe594e3862cf518ae51421e1f3816cc9
-Ancestor: c6398a8b6433921353ec5b0a1cf616804a550961
-Author: angdraug@debian.org
-Date: 2009-07-28T11:25:34
-Branch: whitewash-head
+commit 901cad794ab3072c2edf872276d5b38b14686408
+Author: Dmitry Borodaenko
+Date: Mon Nov 7 00:25:41 2011 +0300
-Modified files:
- lib/whitewash.rb
+ use Syck to parse the whitelist
+
+ As of ruby 1.9.3, Psych is the default YAML engine, but it's unable to
+ correctly handle aliased !ruby/regexp nodes in the Whitewash whitelist:
+ https://github.com/tenderlove/psych/issues/36
-ChangeLog:
+ lib/whitewash.rb | 21 ++++++++++++++++++++-
+ 1 files changed, 20 insertions(+), 1 deletions(-)
-require rbconfig for access to Config::CONFIG
+commit 28f1649b419db704b645e8faa0f68fc10d6fe103
+Author: Dmitry Borodaenko
+Date: Sun Nov 6 22:03:01 2011 +0300
------------------------------------------------------------------
-Revision: c6398a8b6433921353ec5b0a1cf616804a550961
-Ancestor:
-Author: angdraug@debian.org
-Date: 2009-07-27T16:21:20
-Branch: whitewash-head
+ block protocol resolution bypass in uri attributes
-Added files:
- COPYING README.rdoc data/whitewash/whitelist.yaml
- lib/whitewash.rb lib/whitewash_rexml_attribute_patch.rb
- setup.rb
-Added directories:
- . data data/whitewash lib
+ data/whitewash/whitelist.yaml | 2 +-
+ lib/whitewash.rb | 2 +-
+ 2 files changed, 2 insertions(+), 2 deletions(-)
-ChangeLog:
+commit 83de10fdf87e5ae9fd1781cba27330c514b67004
+Author: anonymous
+Date: Thu Oct 27 17:45:45 2011 +0300
-initial checkin: Whitewash is a spin-off of sanitize.rb from Samizdat project
+ fix typo in html5_whitelist.yaml
+ data/whitewash/html5_whitelist.yaml | 2 +-
+ 1 files changed, 1 insertions(+), 1 deletions(-)
+
+commit 6a0534fd2f44122d6c09e53cd19103116d8a19d8
+Author: Dmitry Borodaenko
+Date: Tue Nov 1 22:13:34 2011 +0300
+
+ mention Nokogiri and HTML5 whitelist in README, update copyright
+
+ README.rdoc | 36 ++++++++----------------------------
+ lib/whitewash.rb | 2 +-
+ 2 files changed, 9 insertions(+), 29 deletions(-)
+
+commit 8ff06aea8821c2db26c9fd31056e4233cdd35882
+Author: Dmitry Borodaenko
+Date: Tue Nov 1 22:03:11 2011 +0300
+
+ add rspec and make it pass
+
+ * remove element from the whitelist
+ * sanitize
}
+ output = w.sanitize(input)
+ output.should == ''
+ end
+
+ it "removes XML data island with CDATA obfuscation" do
+ w = Whitewash.new
+ input = %{]]> }
+ output = w.sanitize(input)
+ output.should == ']]> '
+ end
+end