[pve-devel] [PATCH pve-access-control] fix access of possibly undefined variable

Wolfgang Bumiller w.bumiller at proxmox.com
Fri Aug 7 09:49:53 CEST 2015


---
 PVE/AccessControl.pm | 1 +
 1 file changed, 1 insertion(+)

diff --git a/PVE/AccessControl.pm b/PVE/AccessControl.pm
index 955e143..bfee816 100644
--- a/PVE/AccessControl.pm
+++ b/PVE/AccessControl.pm
@@ -708,6 +708,7 @@ sub parse_user_config {
 
     userconfig_force_defaults($cfg);
 
+    $raw = '' if !defined($raw);
     while ($raw =~ /^\s*(.+?)\s*$/gm) {
 	my $line = $1;
 	my @data;
-- 
2.1.4





More information about the pve-devel mailing list