Fix content server internal redirects not unquoting the category.

See http://www.mobileread.com/forums/showthread.php?t=236441 for some context.

Although the fix works, I am not sure that this is the right way to fix it. I am not familiar enough with the routing system to know if there is a single place somewhere that is missing the unquote.
This commit is contained in:
Charles Haley 2014-04-05 10:19:54 +02:00
parent d368f0f745
commit 52fe9e9a5a

View File

@ -632,6 +632,8 @@ class BrowseServer(object):
@Endpoint(sort_type='list') @Endpoint(sort_type='list')
def browse_matches(self, category=None, cid=None, list_sort=None): def browse_matches(self, category=None, cid=None, list_sort=None):
# We might get here from an internal redirect that doesn't unquote the category
category = unquote(category)
if list_sort: if list_sort:
list_sort = unquote(list_sort) list_sort = unquote(list_sort)
if not cid: if not cid: