From 52fe9e9a5a9090da910a0ec860779acbc44fe699 Mon Sep 17 00:00:00 2001 From: Charles Haley Date: Sat, 5 Apr 2014 10:19:54 +0200 Subject: [PATCH] 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. --- src/calibre/library/server/browse.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/calibre/library/server/browse.py b/src/calibre/library/server/browse.py index f0b53baeca..a653e48759 100644 --- a/src/calibre/library/server/browse.py +++ b/src/calibre/library/server/browse.py @@ -632,6 +632,8 @@ class BrowseServer(object): @Endpoint(sort_type='list') 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: list_sort = unquote(list_sort) if not cid: