Content server; Fix page not found error when clicking on a category that has only a single item in it

Merge branch 'master' of https://github.com/cbhaley/calibre
This commit is contained in:
Kovid Goyal 2014-04-05 18:16:52 +05:30
commit 2987737eb1

View File

@ -498,7 +498,9 @@ class BrowseServer(object):
datatype, self.opts.url_prefix)
href = re.search(r'<a href="([^"]+)"', html)
if href is not None:
raise cherrypy.InternalRedirect(href.group(1))
# cherrypy does not auto unquote params when using
# InternalRedirect
raise cherrypy.InternalRedirect(unquote(href.group(1)))
if len(items) <= self.opts.max_opds_ungrouped_items:
script = 'false'