提交 e85e51a1 编写于 作者: K kohsuke

[FIXED HUDSON-2026] in 1.340 by applying the patch.

For the longest time I've been meaning to do the fact checking on where the relevant standards are in terms of the encoding used in %HH. I just can't believe UTF-8 is not the default.

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@24880 71c3de6d-444a-0410-be80-ed276b4c234a
上级 b5611e6a
......@@ -219,6 +219,8 @@ public class HudsonPrivateSecurityRealm extends SecurityRealm implements ModelOb
* a valid {@link User} object if the user creation was successful.
*/
private User createAccount(StaplerRequest req, StaplerResponse rsp, boolean selfRegistration, String formView) throws ServletException, IOException {
req.setCharacterEncoding("UTF-8");
// form field validation
// this pattern needs to be generalized and moved to stapler
SignupInfo si = new SignupInfo();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册