mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-12 16:06:25 +02: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