Permalink
Browse files

fix author names that have apostrophe's (\x27).

  • Loading branch information...
1 parent 9aaa63c commit a2adaeb222e1a48877c6fd7522b30993e2fb59ce @mrjbq7 mrjbq7 committed Oct 21, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 tracstats/web_ui.py
View
@@ -93,7 +93,7 @@ def process_request(self, req):
where = []
if author:
- where.append("author = '%s'" % author)
+ where.append("author = '%s'" % author.replace("'", "''"))
since = 0
if last:
m = re.match('(\d+)m', last)

0 comments on commit a2adaeb

Please sign in to comment.