X-Git-Url: https://git.proxmox.com/?p=pve-common.git;a=blobdiff_plain;f=data%2FPVE%2FRESTHandler.pm;h=e2e17e44cb527f63bef4480ac64f3d62af370ac0;hp=fbe5df6303578db2c9bac29a6e1c6f84e67084ef;hb=844a246d4434d5d346c94c73227ca1efd818727e;hpb=89a3d8347de74de95104c104834324724b71c0a4 diff --git a/data/PVE/RESTHandler.pm b/data/PVE/RESTHandler.pm index fbe5df6..e2e17e4 100644 --- a/data/PVE/RESTHandler.pm +++ b/data/PVE/RESTHandler.pm @@ -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};