Skip to content

Commit 0ab659d

Browse files
author
jmontoya
committed
Adding trim in the ini_parser::get_ini_string() function
1 parent 35cc408 commit 0ab659d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

interface/lib/classes/ini_parser.inc.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,8 @@ public function get_ini_string($config_array = '') {
5959
$content .= "[$section]\n";
6060
foreach($data as $item => $value) {
6161
if($item != ''){
62+
$value = trim($value);
63+
$item = trim($item);
6264
$content .= "$item=$value\n";
6365
}
6466
}

0 commit comments

Comments
 (0)