@@ -14,7 +14,7 @@ import (
|
||||
"github.com/bluenviron/mediamtx/internal/logger"
|
||||
)
|
||||
|
||||
var rePathName = regexp.MustCompile(`^[0-9a-zA-Z_\-/\.~]+$`)
|
||||
var rePathName = regexp.MustCompile(`^[0-9a-zA-Z_\-/\.~:]+$`)
|
||||
|
||||
// IsValidPathName checks whether the path name is valid.
|
||||
func IsValidPathName(name string) error {
|
||||
@@ -31,7 +31,7 @@ func IsValidPathName(name string) error {
|
||||
}
|
||||
|
||||
if !rePathName.MatchString(name) {
|
||||
return fmt.Errorf("can contain only alphanumeric characters, underscore, dot, tilde, minus or slash")
|
||||
return fmt.Errorf("can contain only alphanumeric characters, underscore, dot, tilde, minus, slash, colon")
|
||||
}
|
||||
|
||||
return nil
|
||||
|
||||
Reference in New Issue
Block a user