forked from I2P_Developers/i2p.i2p
set request encoding
This commit is contained in:
@@ -99,6 +99,8 @@ public class IdenticonServlet extends HttpServlet {
|
|||||||
protected void doGet(HttpServletRequest request,
|
protected void doGet(HttpServletRequest request,
|
||||||
HttpServletResponse response) throws ServletException, IOException {
|
HttpServletResponse response) throws ServletException, IOException {
|
||||||
|
|
||||||
|
if (request.getCharacterEncoding() == null)
|
||||||
|
request.setCharacterEncoding("UTF-8");
|
||||||
String codeParam = request.getParameter(PARAM_IDENTICON_CODE_SHORT);
|
String codeParam = request.getParameter(PARAM_IDENTICON_CODE_SHORT);
|
||||||
boolean codeSpecified = codeParam != null && codeParam.length() > 0;
|
boolean codeSpecified = codeParam != null && codeParam.length() > 0;
|
||||||
if (!codeSpecified) {
|
if (!codeSpecified) {
|
||||||
|
@@ -100,6 +100,8 @@ public class QRServlet extends HttpServlet {
|
|||||||
protected void doGet(HttpServletRequest request,
|
protected void doGet(HttpServletRequest request,
|
||||||
HttpServletResponse response) throws ServletException, IOException {
|
HttpServletResponse response) throws ServletException, IOException {
|
||||||
|
|
||||||
|
if (request.getCharacterEncoding() == null)
|
||||||
|
request.setCharacterEncoding("UTF-8");
|
||||||
String codeParam = request.getParameter(PARAM_IDENTICON_CODE_SHORT);
|
String codeParam = request.getParameter(PARAM_IDENTICON_CODE_SHORT);
|
||||||
boolean codeSpecified = codeParam != null && codeParam.length() > 0;
|
boolean codeSpecified = codeParam != null && codeParam.length() > 0;
|
||||||
if (!codeSpecified) {
|
if (!codeSpecified) {
|
||||||
|
@@ -33,6 +33,8 @@ public class RandomArtServlet extends HttpServlet {
|
|||||||
protected void doGet(HttpServletRequest request,
|
protected void doGet(HttpServletRequest request,
|
||||||
HttpServletResponse response) throws ServletException, IOException {
|
HttpServletResponse response) throws ServletException, IOException {
|
||||||
|
|
||||||
|
if (request.getCharacterEncoding() == null)
|
||||||
|
request.setCharacterEncoding("UTF-8");
|
||||||
String codeParam = request.getParameter(PARAM_IDENTICON_CODE_SHORT);
|
String codeParam = request.getParameter(PARAM_IDENTICON_CODE_SHORT);
|
||||||
boolean codeSpecified = codeParam != null && codeParam.length() > 0;
|
boolean codeSpecified = codeParam != null && codeParam.length() > 0;
|
||||||
if (!codeSpecified) {
|
if (!codeSpecified) {
|
||||||
|
Reference in New Issue
Block a user