mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-11 15:56:07 -07:00
Escape double quotes in search query
This commit is contained in:
parent
a9316ebea1
commit
e9017a8342
6 changed files with 12 additions and 13 deletions
|
@ -848,7 +848,7 @@ class DataFactory(object):
|
|||
media_type = 'artist'
|
||||
|
||||
if query_string and media_type:
|
||||
query = {'query_string': query_string.replace('"', ''),
|
||||
query = {'query_string': query_string,
|
||||
'title': title,
|
||||
'parent_title': parent_title,
|
||||
'grandparent_title': grandparent_title,
|
||||
|
|
|
@ -1366,8 +1366,7 @@ class WebInterface(object):
|
|||
return json.dumps({'message': 'no data received'})
|
||||
|
||||
@cherrypy.expose
|
||||
def search(self, search_query=''):
|
||||
query = search_query.replace('"', '')
|
||||
def search(self, query=''):
|
||||
|
||||
return serve_template(templatename="search.html", title="Search", query=query)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue