changed regex to allow @ in directory storage paths
@ is often used to signify btrfs subvolumes. Signed-off-by: Markus Frank <m.frank@proxmox.com>
This commit is contained in:
committed by
Wolfgang Bumiller
parent
6d9aac955d
commit
765e0da23f
@ -241,7 +241,7 @@ sub check_config {
|
|||||||
my ($self, $sectionId, $config, $create, $skipSchemaCheck) = @_;
|
my ($self, $sectionId, $config, $create, $skipSchemaCheck) = @_;
|
||||||
my $opts = PVE::SectionConfig::check_config($self, $sectionId, $config, $create, $skipSchemaCheck);
|
my $opts = PVE::SectionConfig::check_config($self, $sectionId, $config, $create, $skipSchemaCheck);
|
||||||
return $opts if !$create;
|
return $opts if !$create;
|
||||||
if ($opts->{path} !~ m@^/[-/a-zA-Z0-9_.]+$@) {
|
if ($opts->{path} !~ m|^/[-/a-zA-Z0-9_.@]+$|) {
|
||||||
die "illegal path for directory storage: $opts->{path}\n";
|
die "illegal path for directory storage: $opts->{path}\n";
|
||||||
}
|
}
|
||||||
return $opts;
|
return $opts;
|
||||||
|
|||||||
Reference in New Issue
Block a user