aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/com/juick/www/api
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/api
parente71278631c775bf5e3d269ca8986ac7feae73451 (diff)
Do not double escape search string
Diffstat (limited to 'src/main/java/com/juick/www/api')
-rw-r--r--src/main/java/com/juick/www/api/Messages.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/com/juick/www/api/Messages.java b/src/main/java/com/juick/www/api/Messages.java
index c23976f4..e23356a4 100644
--- a/src/main/java/com/juick/www/api/Messages.java
+++ b/src/main/java/com/juick/www/api/Messages.java
@@ -104,7 +104,7 @@ public class Messages {
} else if (daysback > 0) {
mids = messagesService.getUserBlogAtDay(user.getUid(), 0, daysback);
} else if (StringUtils.hasText(search)) {
- mids = messagesService.getUserSearch(visitor, user.getUid(), WebUtils.encodeSphinx(search), 0,
+ mids = messagesService.getUserSearch(visitor, user.getUid(), search, 0,
page);
} else {
mids = messagesService.getUserBlog(user.getUid(), 0, before);
@@ -125,7 +125,7 @@ public class Messages {
throw new HttpNotFoundException();
}
} else if (StringUtils.hasText(search)) {
- mids = messagesService.getSearch(visitor, WebUtils.encodeSphinx(search), page);
+ mids = messagesService.getSearch(visitor, search, page);
} else {
mids = messagesService.getAll(visitor.getUid(), before);
}