mirror of
https://github.com/drakkan/sftpgo.git
synced 2026-03-14 14:25:52 +01:00
Apply naming rules when validating user-associated folders
Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
This commit is contained in:
parent
e861f0f578
commit
f1022db5c1
1 changed files with 1 additions and 0 deletions
|
|
@ -2763,6 +2763,7 @@ func validateAssociatedVirtualFolders(vfolders []vfs.VirtualFolder) ([]vfs.Virtu
|
|||
folderNames := make(map[string]bool)
|
||||
|
||||
for _, v := range vfolders {
|
||||
v.Name = config.convertName(v.Name)
|
||||
if v.VirtualPath == "" {
|
||||
return nil, util.NewI18nError(
|
||||
util.NewValidationError("mount/virtual path is mandatory"),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue