projects
/
pve-common.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
89a3d83
)
map_path_to_methods: do not skip folders which evaluate to false
author
Dietmar Maurer
<dietmar@proxmox.com>
Thu, 24 Apr 2014 12:46:05 +0000
(14:46 +0200)
committer
Dietmar Maurer
<dietmar@proxmox.com>
Thu, 24 Apr 2014 12:46:05 +0000
(14:46 +0200)
data/PVE/RESTHandler.pm
patch
|
blob
|
history
diff --git
a/data/PVE/RESTHandler.pm
b/data/PVE/RESTHandler.pm
index
fbe5df6
..
e2e17e4
100644
(file)
--- 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};