mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix #1095016 (User category icon mixup on webserver)
This commit is contained in:
parent
45fbc31c8d
commit
19a80e1d28
@ -441,7 +441,11 @@ class BrowseServer(object):
|
||||
cat_len = len(category)
|
||||
if not (len(ucat) > cat_len and ucat.startswith(category+'.')):
|
||||
continue
|
||||
icon = category_icon_map['user:']
|
||||
|
||||
if ucat in self.icon_map:
|
||||
icon = '_'+quote(self.icon_map[ucat])
|
||||
else:
|
||||
icon = category_icon_map['user:']
|
||||
# we have a subcategory. Find any further dots (further subcats)
|
||||
cat_len += 1
|
||||
cat = ucat[cat_len:]
|
||||
|
Loading…
x
Reference in New Issue
Block a user