diff options
author | 2018-06-01 11:48:23 +0300 | |
---|---|---|
committer | 2018-06-01 11:48:23 +0300 | |
commit | c549a5493b40aa639f9af898e1490344c0aa2b3b (patch) | |
tree | bff658e9ba703ddfb26a1d06ceac87c82e7c8157 /juick-www/src/main/java/com/juick/www/Utils.java | |
parent | 84b2f994bd9b6b46155dda5953922cc0882c6514 (diff) |
server: handmade SphinxSE query mapping
Diffstat (limited to 'juick-www/src/main/java/com/juick/www/Utils.java')
-rw-r--r-- | juick-www/src/main/java/com/juick/www/Utils.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/juick-www/src/main/java/com/juick/www/Utils.java b/juick-www/src/main/java/com/juick/www/Utils.java index 8ab277db..3b1932d0 100644 --- a/juick-www/src/main/java/com/juick/www/Utils.java +++ b/juick-www/src/main/java/com/juick/www/Utils.java @@ -27,7 +27,8 @@ public class Utils { public static String encodeSphinx(String str) { - return str.replaceAll("@", "\\\\@"); + return str.replaceAll("@", "\\\\@") + .replaceAll("\\'", "\\\\'"); } /** |