]> granicus.if.org Git - pdns/commitdiff
Use escaped_pattern instead of pattern
authorAki Tuomi <cmouse@desteem.org>
Wed, 5 Aug 2015 15:56:22 +0000 (18:56 +0300)
committerAki Tuomi <cmouse@desteem.org>
Wed, 5 Aug 2015 15:56:22 +0000 (18:56 +0300)
pdns/backends/gsql/gsqlbackend.cc

index df6e9beb22994ab6a768093dc8a87b27aa8481d3..951d1a681fc4208cc7866243ee3e03110e7da4c3 100644 (file)
@@ -1524,8 +1524,8 @@ bool GSQLBackend::searchComments(const string &pattern, int maxResults, vector<C
     string escaped_pattern = pattern2SQLPattern(pattern);
 
     d_SearchCommentsQuery_stmt->
-      bind("value", pattern)->
-      bind("value2", pattern)->
+      bind("value", escaped_pattern)->
+      bind("value2", escaped_pattern)->
       bind("limit", maxResults)->
       execute();