mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-06-23 15:30:45 -04:00
URL quote item_value in CC web search templates
This commit is contained in:
parent
65f89bda7a
commit
a632436c60
@ -69,7 +69,7 @@ def search_action_with_data(search_term, value, book_id, field=None, **k):
|
|||||||
|
|
||||||
def web_search_link(template, mi, value):
|
def web_search_link(template, mi, value):
|
||||||
formatter = SafeFormat()
|
formatter = SafeFormat()
|
||||||
mi.set('item_value', value)
|
mi.set('item_value', qquote(str(value)))
|
||||||
u = formatter.safe_format(template, mi, 'BOOK DETAILS WEB LINK', mi)
|
u = formatter.safe_format(template, mi, 'BOOK DETAILS WEB LINK', mi)
|
||||||
if u:
|
if u:
|
||||||
return u, prepare_string_for_xml(_('Click to browse to: {}').format(u), attribute=True)
|
return u, prepare_string_for_xml(_('Click to browse to: {}').format(u), attribute=True)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user