mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix #1280606 [Similar Books doesn't escape double quotes in search string](https://bugs.launchpad.net/calibre/+bug/1280606)
This commit is contained in:
parent
b143f637e3
commit
8514166b55
@ -75,7 +75,7 @@ class SimilarBooksAction(InterfaceAction):
|
||||
|
||||
if not isinstance(val, (list, set)):
|
||||
val = [val]
|
||||
search = [col + ':"='+t+'"' for t in val]
|
||||
search = [col + ':"='+t.replace('"', '\\"')+'"' for t in val]
|
||||
if search:
|
||||
self.gui.search.set_search_string(join.join(search),
|
||||
store_in_history=True)
|
||||
|
Loading…
x
Reference in New Issue
Block a user