aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/com/juick/www/controllers
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2023-01-11 17:09:47 +0300
committerGravatar Vitaly Takmazov2023-01-11 17:09:47 +0300
commitc620d66ae21f1eae6d056c1530ce91a7ef2285c5 (patch)
treeae394473074608bb5645107128efc5edc78dd5b9 /src/main/java/com/juick/www/controllers
parente71278631c775bf5e3d269ca8986ac7feae73451 (diff)
Do not double escape search string
Diffstat (limited to 'src/main/java/com/juick/www/controllers')
-rw-r--r--src/main/java/com/juick/www/controllers/Site.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/com/juick/www/controllers/Site.java b/src/main/java/com/juick/www/controllers/Site.java
index 1169414f..3bf27772 100644
--- a/src/main/java/com/juick/www/controllers/Site.java
+++ b/src/main/java/com/juick/www/controllers/Site.java
@@ -150,7 +150,7 @@ public class Site {
if (paramSearch != null) {
String searchTitle = ResourceBundle.getBundle("messages", locale).getString("title.search");
title = searchTitle + StringEscapeUtils.escapeHtml4(paramSearch);
- mids = messagesService.getSearch(visitor, WebUtils.encodeSphinx(paramSearch), page);
+ mids = messagesService.getSearch(visitor, paramSearch, page);
} else if (paramShow == null) {
title = ResourceBundle.getBundle("messages", locale).getString("link.discuss");
mids = messagesService.getDiscussions(visitor.getUid(), paramTo);
@@ -266,7 +266,7 @@ public class Site {
mids = messagesService.getUserTag(user.getUid(), paramTag.TID, privacy, before);
} else if (paramSearch != null) {
title = "Блог " + user.getName() + ": " + StringEscapeUtils.escapeHtml4(paramSearch);
- mids = messagesService.getUserSearch(visitor, user.getUid(), WebUtils.encodeSphinx(paramSearch),
+ mids = messagesService.getUserSearch(visitor, user.getUid(), paramSearch,
privacy, page);
} else {
title = "Блог " + user.getName();