fix: Wrapped ipmi user / pass in quotes #4686 and #4702

This commit is contained in:
Zaxmy
2016-10-03 20:10:59 +02:00
committed by Neil Lathwood
parent da32f7bb43
commit 2b52977668

View File

@@ -8,7 +8,7 @@ if ($ipmi['host'] = get_dev_attrib($device, 'ipmi_hostname')) {
$ipmi['password'] = get_dev_attrib($device, 'ipmi_password');
if ($config['own_hostname'] != $device['hostname'] || $ipmi['host'] != 'localhost') {
$remote = ' -H '.$ipmi['host'].' -U '.$ipmi['user'].' -P '.$ipmi['password'];
$remote = " -H ".$ipmi['host']." -U '".$ipmi['user']."' -P '".$ipmi['password']."' -L USER";
}
foreach ($config['ipmi']['type'] as $ipmi_type) {