Escape double quotes in search query

This commit is contained in:
Jonathan Wong 2015-11-01 20:37:28 -08:00
parent a9316ebea1
commit e9017a8342
6 changed files with 12 additions and 13 deletions

View file

@ -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,

View file

@ -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)