]> git.proxmox.com Git - pmg-api.git/commitdiff
access control: style: drop some extra newlines
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 16 Jun 2021 12:19:51 +0000 (14:19 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 16 Jun 2021 12:19:51 +0000 (14:19 +0200)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
src/PMG/AccessControl.pm

index 20f2c175a0ef61b0cd51fa9e19eddb97c6463f88..1461335106500e0da7eefcac64caf3eb48c0a496 100644 (file)
@@ -16,13 +16,9 @@ sub normalize_path {
     my $path = shift;
 
     $path =~ s|/+|/|g;
-
     $path =~ s|/$||;
-
     $path = '/' if !$path;
-
     $path = "/$path" if $path !~ m|^/|;
-
     return undef if $path !~ m|^[[:alnum:]\.\-\_\/]+$|;
 
     return $path;