提交 8477eb1a 编写于 作者: K kohsuke

reapplying a fix for '\' in SVN user name issue.


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@1361 71c3de6d-444a-0410-be80-ed276b4c234a
上级 1eb029f7
......@@ -128,6 +128,8 @@ public class User extends AbstractModelObject {
public static User get(String name) {
if(name==null)
return null;
name = name.replace('\\', '_').replace('/', '_');
synchronized(byName) {
User u = byName.get(name);
if(u==null) {
......@@ -175,7 +177,6 @@ public class User extends AbstractModelObject {
* The file we save our configuration.
*/
protected final XmlFile getConfigFile() {
String safeId = id.replace('\\', '_').replace('/', '_');
return new XmlFile(XSTREAM,new File(Hudson.getInstance().getRootDir(),"users/"+ safeId +"/config.xml"));
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册