mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
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:
parent
d368f0f745
commit
52fe9e9a5a
@ -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:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user