Commit 0ab659dc authored by jmontoya's avatar jmontoya
Browse files

Adding trim in the ini_parser::get_ini_string() function

parent 35cc408f
...@@ -59,6 +59,8 @@ class ini_parser{ ...@@ -59,6 +59,8 @@ class ini_parser{
$content .= "[$section]\n"; $content .= "[$section]\n";
foreach($data as $item => $value) { foreach($data as $item => $value) {
if($item != ''){ if($item != ''){
$value = trim($value);
$item = trim($item);
$content .= "$item=$value\n"; $content .= "$item=$value\n";
} }
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment