aboutsummaryrefslogtreecommitdiff
path: root/juick-www/src/main/java/com
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2018-06-01 11:48:23 +0300
committerGravatar Vitaly Takmazov2018-06-01 11:48:23 +0300
commitc549a5493b40aa639f9af898e1490344c0aa2b3b (patch)
treebff658e9ba703ddfb26a1d06ceac87c82e7c8157 /juick-www/src/main/java/com
parent84b2f994bd9b6b46155dda5953922cc0882c6514 (diff)
server: handmade SphinxSE query mapping
Diffstat (limited to 'juick-www/src/main/java/com')
-rw-r--r--juick-www/src/main/java/com/juick/www/Utils.java3
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("\\'", "\\\\'");
}
/**