aboutsummaryrefslogtreecommitdiff
path: root/wqflask
diff options
context:
space:
mode:
authorArtem Tarasov2015-06-22 00:30:50 +0300
committerArtem Tarasov2015-06-22 00:30:50 +0300
commita41f9323ea5b86be6d2139a927586630b222af68 (patch)
treef31141b5cf52a4e566f932223b646f065fadd5e3 /wqflask
parent719b41035d721cdd5f4e0faced88534af2619980 (diff)
downloadgenenetwork2-a41f9323ea5b86be6d2139a927586630b222af68.tar.gz
escape docs query
Diffstat (limited to 'wqflask')
-rwxr-xr-xwqflask/wqflask/docs.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/wqflask/wqflask/docs.py b/wqflask/wqflask/docs.py
index 07b0b81a..a8363a1f 100755
--- a/wqflask/wqflask/docs.py
+++ b/wqflask/wqflask/docs.py
@@ -8,9 +8,9 @@ class Docs(object):
sql = """
SELECT Docs.title, Docs.content
FROM Docs
- WHERE Docs.entry LIKE '%s'
+ WHERE Docs.entry LIKE %s
"""
- result = g.db.execute(sql % (entry)).fetchone()
+ result = g.db.execute(sql, str(entry)).fetchone()
self.entry = entry
self.title = result[0]
self.content = result[1]