aboutsummaryrefslogtreecommitdiff
path: root/juick-www/src
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2017-02-01 13:23:01 +0300
committerGravatar Vitaly Takmazov2017-02-01 13:23:01 +0300
commitccd70032ce571875ab7918a44f3ff1752c94a447 (patch)
treed1984d942f9d411d35b6b5ba1d6705af8600329e /juick-www/src
parent1c0655643f04af89cff938af6a4a2792a5fbc69d (diff)
juick-www: spring path variables already url-decoded
Diffstat (limited to 'juick-www/src')
-rw-r--r--juick-www/src/main/java/com/juick/www/controllers/Tags.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/juick-www/src/main/java/com/juick/www/controllers/Tags.java b/juick-www/src/main/java/com/juick/www/controllers/Tags.java
index ee95d08c..73813179 100644
--- a/juick-www/src/main/java/com/juick/www/controllers/Tags.java
+++ b/juick-www/src/main/java/com/juick/www/controllers/Tags.java
@@ -36,7 +36,6 @@ import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.io.PrintWriter;
-import java.net.URLDecoder;
import java.net.URLEncoder;
import java.util.List;
@@ -64,7 +63,7 @@ public class Tags {
HttpServletResponse response) throws IOException {
com.juick.User visitor = webApp.getVisitorUser(request, response);
- String paramTagStr = URLDecoder.decode(StringEscapeUtils.unescapeHtml4(tagName), CharEncoding.UTF_8);
+ String paramTagStr = StringEscapeUtils.unescapeHtml4(tagName);
com.juick.Tag paramTag = tagService.getTag(paramTagStr, false);
if (paramTag == null) {
response.sendError(HttpServletResponse.SC_NOT_FOUND);