mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-04-19 03:01:48 +08:00
fix 修复获取当前用户名不应加后面的路径/符号
这里是获取系统的用户名,不是路径,不应该带有路径的/ 所以去掉fixPath方法的处理。
This commit is contained in:
parent
6a2b585de0
commit
9b3aaee7dc
@ -19,7 +19,7 @@ public class UserInfo implements Serializable{
|
||||
private final String USER_COUNTRY;
|
||||
|
||||
public UserInfo(){
|
||||
USER_NAME = fixPath(SystemUtil.get("user.name", false));
|
||||
USER_NAME = SystemUtil.get("user.name", false);
|
||||
USER_HOME = fixPath(SystemUtil.get("user.home", false));
|
||||
USER_DIR = fixPath(SystemUtil.get("user.dir", false));
|
||||
JAVA_IO_TMPDIR = fixPath(SystemUtil.get("java.io.tmpdir", false));
|
||||
|
Loading…
x
Reference in New Issue
Block a user