]> git.proxmox.com Git - pve-common.git/blobdiff - data/PVE/RESTHandler.pm
map_path_to_methods: do not skip folders which evaluate to false
[pve-common.git] / data / PVE / RESTHandler.pm
index fbe5df6303578db2c9bac29a6e1c6f84e67084ef..e2e17e44cb527f63bef4480ac64f3d62af370ac0 100644 (file)
@@ -274,7 +274,7 @@ sub map_path_to_methods {
 
     my $path_lookup = $method_path_lookup->{$class};
 
-    while (my $comp = shift @$stack) {
+    while (defined(my $comp = shift @$stack)) {
        return undef if !$path_lookup; # not registerd?
        if ($path_lookup->{regex}) {
            my $name = $path_lookup->{regex}->{match_name};