mirror of
https://github.com/pgsty/minio.git
synced 2026-09-22 02:38:29 +03:00
fs: Filter out valid paths and volnames. (#1321)
This commit is contained in:
+1
-1
@@ -60,7 +60,7 @@ func isValidPath(path string) bool {
|
||||
// isValidPrefix verifies where the prefix is a valid path.
|
||||
func isValidPrefix(prefix string) bool {
|
||||
// Prefix can be empty.
|
||||
if prefix == "" {
|
||||
if prefix == "" || prefix == "/" {
|
||||
return true
|
||||
}
|
||||
// Verify if prefix is a valid path.
|
||||
|
||||
Reference in New Issue
Block a user