mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
allow lack of trailing slash in rancid config directories
git-svn-id: http://www.observium.org/svn/observer/trunk@999 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -7,6 +7,7 @@ if($_SESSION['userlevel'] >= "5") {
|
||||
if(!is_array($config['rancid_configs'])) { $config['rancid_configs'] = array($config['rancid_configs']); }
|
||||
|
||||
foreach($config['rancid_configs'] as $configs) {
|
||||
if ($configs[strlen($configs)-1] != '/') { $configs .= '/'; }
|
||||
if(is_file($configs . $device['hostname'])) { $file = $configs . $device['hostname']; }
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user