mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Strip newlines from arguments on creation
This commit is contained in:
@ -206,7 +206,7 @@ function rrdtool($command, $filename, $options) {
|
||||
|
||||
|
||||
function rrdtool_create($filename, $options) {
|
||||
return rrdtool('create', $filename, $options);
|
||||
return rrdtool('create', $filename, str_replace(array("\r", "\n"), '', $options));
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user