diff options
author | Vitaly Takmazov | 2017-02-01 13:23:01 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2017-02-01 13:23:01 +0300 |
commit | ccd70032ce571875ab7918a44f3ff1752c94a447 (patch) | |
tree | d1984d942f9d411d35b6b5ba1d6705af8600329e /juick-www/src/main/java | |
parent | 1c0655643f04af89cff938af6a4a2792a5fbc69d (diff) |
juick-www: spring path variables already url-decoded
Diffstat (limited to 'juick-www/src/main/java')
-rw-r--r-- | juick-www/src/main/java/com/juick/www/controllers/Tags.java | 3 |
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); |