Hello community,

here is the log from the commit of package python3-html5lib for 
openSUSE:Factory checked in at 2015-10-22 12:59:19
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python3-html5lib (Old)
 and      /work/SRC/openSUSE:Factory/.python3-html5lib.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python3-html5lib"

Changes:
--------
--- /work/SRC/openSUSE:Factory/python3-html5lib/python3-html5lib.changes        
2015-08-05 06:50:15.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.python3-html5lib.new/python3-html5lib.changes   
2015-10-22 12:59:25.000000000 +0200
@@ -1,0 +2,7 @@
+Tue Oct 20 03:04:25 UTC 2015 - [email protected]
+
+- update to version 0.9999999:
+  * Fix #195: fix the sanitizer to drop broken URLs (it threw an
+    exception between 0.9999 and 0.999999).
+
+-------------------------------------------------------------------

Old:
----
  html5lib-0.999999.tar.gz

New:
----
  html5lib-0.9999999.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python3-html5lib.spec ++++++
--- /var/tmp/diff_new_pack.0DB8aT/_old  2015-10-22 12:59:25.000000000 +0200
+++ /var/tmp/diff_new_pack.0DB8aT/_new  2015-10-22 12:59:25.000000000 +0200
@@ -17,7 +17,7 @@
 
 
 Name:           python3-html5lib
-Version:        0.999999
+Version:        0.9999999
 Release:        0
 Summary:        HTML parser based on the WHAT-WG Web Applications 1
 License:        MIT

++++++ html5lib-0.999999.tar.gz -> html5lib-0.9999999.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/html5lib-0.999999/CHANGES.rst 
new/html5lib-0.9999999/CHANGES.rst
--- old/html5lib-0.999999/CHANGES.rst   2015-07-07 03:59:29.000000000 +0200
+++ new/html5lib-0.9999999/CHANGES.rst  2015-09-10 01:07:50.000000000 +0200
@@ -1,6 +1,15 @@
 Change Log
 ----------
 
+0.9999999/1.0b8
+~~~~~~~~~~~~~~~
+
+Released on September 10, 2015
+
+* Fix #195: fix the sanitizer to drop broken URLs (it threw an
+  exception between 0.9999 and 0.999999).
+
+
 0.999999/1.0b7
 ~~~~~~~~~~~~~~
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/html5lib-0.999999/PKG-INFO 
new/html5lib-0.9999999/PKG-INFO
--- old/html5lib-0.999999/PKG-INFO      2015-07-07 03:59:36.000000000 +0200
+++ new/html5lib-0.9999999/PKG-INFO     2015-09-10 01:08:12.000000000 +0200
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: html5lib
-Version: 0.999999
+Version: 0.9999999
 Summary: HTML parser based on the WHATWG HTML specification
 Home-page: https://github.com/html5lib/html5lib-python
 Author: James Graham
@@ -167,6 +167,15 @@
         Change Log
         ----------
         
+        0.9999999/1.0b8
+        ~~~~~~~~~~~~~~~
+        
+        Released on September 10, 2015
+        
+        * Fix #195: fix the sanitizer to drop broken URLs (it threw an
+          exception between 0.9999 and 0.999999).
+        
+        
         0.999999/1.0b7
         ~~~~~~~~~~~~~~
         
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/html5lib-0.999999/html5lib/__init__.py 
new/html5lib-0.9999999/html5lib/__init__.py
--- old/html5lib-0.999999/html5lib/__init__.py  2015-07-07 03:59:29.000000000 
+0200
+++ new/html5lib-0.9999999/html5lib/__init__.py 2015-09-10 01:07:50.000000000 
+0200
@@ -22,4 +22,4 @@
            "getTreeWalker", "serialize"]
 
 # this has to be at the top level, see how setup.py parses this
-__version__ = "0.999999"
+__version__ = "0.9999999"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/html5lib-0.999999/html5lib/sanitizer.py 
new/html5lib-0.9999999/html5lib/sanitizer.py
--- old/html5lib-0.999999/html5lib/sanitizer.py 2015-07-07 03:59:29.000000000 
+0200
+++ new/html5lib-0.9999999/html5lib/sanitizer.py        2015-09-08 
01:37:03.000000000 +0200
@@ -207,7 +207,11 @@
                                        unescape(attrs[attr])).lower()
                 # remove replacement characters from unescaped characters
                 val_unescaped = val_unescaped.replace("\ufffd", "")
-                uri = urlparse.urlparse(val_unescaped)
+                try:
+                    uri = urlparse.urlparse(val_unescaped)
+                except ValueError:
+                    uri = None
+                    del attrs[attr]
                 if uri and uri.scheme:
                     if uri.scheme not in self.allowed_protocols:
                         del attrs[attr]
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/html5lib-0.999999/html5lib/tests/test_sanitizer.py 
new/html5lib-0.9999999/html5lib/tests/test_sanitizer.py
--- old/html5lib-0.999999/html5lib/tests/test_sanitizer.py      2015-07-07 
03:59:29.000000000 +0200
+++ new/html5lib-0.9999999/html5lib/tests/test_sanitizer.py     2015-09-08 
01:37:03.000000000 +0200
@@ -113,6 +113,11 @@
            "<audio controls=\"\" src=\"data:foobar\"></audio>",
            toxml)
 
+    yield (runSanitizerTest, "test_invalid_ipv6_url",
+           "<a>",
+           "<a href=\"h://]\">",
+           toxml)
+
     yield (runSanitizerTest, "test_data_uri_disallowed_type",
            "<audio controls=\"\"></audio>",
            "<audio controls=\"\" src=\"data:text/html,<html>\"></audio>",


Reply via email to