Commit 319f2e64 authored by Julien Muchembled's avatar Julien Muchembled

Revert "try to parse latin-1 encoded url (even though that is invalid according to RFC 3986)."

This reverts commit 42160 because it breaks
testWebCrawler.TestWebCrawler.test_01_check_URLTransformations

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@42320 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 4e634d24
......@@ -3187,7 +3187,6 @@ class ScalarMaxConflictResolver(persistent.Persistent):
###################
# URL Normaliser #
###################
from Products.PythonScripts.standard import url_unquote
try:
import urlnorm
except ImportError:
......@@ -3259,11 +3258,6 @@ def urlnormNormaliseUrl(url, base_url=None):
"""
try:
url = urlnorm.norm(url)
except UnicodeDecodeError:
try:
url = urlnorm.norm(url_unquote(url).decode('latin1'))
except UnicodeDecodeError:
raise urlnorm.InvalidUrl
except (AttributeError, urlnorm.InvalidUrl):
# This url is not valid, a better Exception will
# be raised
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment