Decode the request url as UTF-8 in the authentication filtertags/v1.4.0
@@ -100,6 +100,12 @@ public abstract class AuthenticationFilter extends DaggerFilter { | |||
url = url.substring(1); | |||
} | |||
String fullUrl = url + (StringUtils.isEmpty(params) ? "" : ("?" + params)); | |||
try { | |||
fullUrl = URLDecoder.decode(fullUrl, "UTF-8"); | |||
} catch (UnsupportedEncodingException e) { | |||
logger.warn("UTF-8 decoding of URL failed: "+fullUrl, e); | |||
e.printStackTrace(); | |||
} | |||
return fullUrl; | |||
} | |||
@@ -180,4 +186,4 @@ public abstract class AuthenticationFilter extends DaggerFilter { | |||
return user; | |||
} | |||
} | |||
} | |||
} |