diff --git a/CHANGES.txt b/CHANGES.txt index c79f254..e7ee5f4 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -10,10 +10,6 @@ Changelog - Move tests from PloneTestCase to plone.app.testing. [timo] -- Make the redirector return false and catch a UnicodeDecode error if a URL - contains illegal characters. - [timo] - 1.1.3 (2012-05-07) ------------------ diff --git a/plone/app/redirector/storage.py b/plone/app/redirector/storage.py index 76b9c99..b0ba3d4 100644 --- a/plone/app/redirector/storage.py +++ b/plone/app/redirector/storage.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- from zope.interface import implements from persistent import Persistent @@ -270,12 +269,7 @@ def has_path(self, old_path): def get(self, old_path, default=None): old_path = self._canonical(old_path) - try: - return self._paths.get(old_path, default) - except UnicodeDecodeError: - # Always return False if the URL contains illegal characters and - # can not be decoded. - return False + return self._paths.get(old_path, default) def redirects(self, new_path): new_path = self._canonical(new_path)