5
0
mirror of git://git.proxmox.com/git/pve-common.git synced 2025-01-11 13:17:36 +03:00

map_path_to_methods: do not skip folders which evaluate to false

This commit is contained in:
Dietmar Maurer 2014-04-24 14:46:05 +02:00
parent 89a3d8347d
commit 844a246d44

View 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};