Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Escape less.

  • Loading branch information...
commit f52b1e979f5abcc8e7c7c80ced69a1644efc7da2 1 parent 41952ec
@dnephin authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 plugin-src/tracadvsearch/backend.py
View
4 plugin-src/tracadvsearch/backend.py
@@ -68,7 +68,7 @@ def query_backend(self, criteria):
params['start'] = start_point
# add all fields
- q['token_text'] = criteria.get('q')
+ q['token_text'] = self.escape(criteria.get('q'))
q['source'] = self._string_from_filters(criteria.get('source'))
q['author'] = self._string_from_input(criteria.get('author'))
q['time'] = self._date_from_range(
@@ -79,7 +79,7 @@ def query_backend(self, criteria):
# only include key/value pairs when the value is not empty
q_parts = []
for k, v in itertools.ifilter(lambda (k, v): v, q.iteritems()):
- q_parts.append("%s: %s" % (k, self.escape(v)))
+ q_parts.append("%s: %s" % (k, v))
# Ticket only filters
status = self._string_from_filters(criteria.get('ticket_statuses'))
Please sign in to comment.
Something went wrong with that request. Please try again.