mirror of
https://github.com/fumiama/paper-manager.git
synced 2026-06-21 02:40:26 +08:00
implement file.AddFile
This commit is contained in:
@@ -179,7 +179,7 @@ func setUserInfo(id int, nick, desc, avtr *string) error {
|
||||
}
|
||||
if a == "" {
|
||||
*avtr = user.Avtr
|
||||
} else if utils.IsNotExist(global.DataFolder + a) {
|
||||
} else if strings.Contains(a, "..") || utils.IsNotExist(global.DataFolder+a) {
|
||||
return os.ErrNotExist
|
||||
}
|
||||
if a == user.Avtr {
|
||||
|
||||
Reference in New Issue
Block a user