diff options
Diffstat (limited to 'modules/upload')
-rw-r--r-- | modules/upload/upload.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/upload/upload.go b/modules/upload/upload.go index 9d20f1082f..734b3a6acc 100644 --- a/modules/upload/upload.go +++ b/modules/upload/upload.go @@ -35,7 +35,7 @@ func (err ErrFileTypeForbidden) Error() string { var wildcardTypeRe = regexp.MustCompile(`^[a-z]+/\*$`) // Verify validates whether a file is allowed to be uploaded. -func Verify(buf []byte, fileName string, allowedTypesStr string) error { +func Verify(buf []byte, fileName, allowedTypesStr string) error { allowedTypesStr = strings.ReplaceAll(allowedTypesStr, "|", ",") // compat for old config format allowedTypes := []string{} |