From d8ae884d312925d7aeb0116169472fb50d561543 Mon Sep 17 00:00:00 2001 From: Timo Stollenwerk Date: Tue, 19 Jun 2012 17:52:18 +0200 Subject: [PATCH] Revert "Make the redirector return false and catch a UnicodeDecode error if a URL" This reverts commit c44189b7ddec3b52612a6c8519b47cea3d37b9ce. --- CHANGES.txt | 4 ---- plone/app/redirector/storage.py | 8 +------- 2 files changed, 1 insertion(+), 11 deletions(-) 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)