Skip to content
Snippets Groups Projects
Commit 0ab659dc authored by jmontoya's avatar jmontoya
Browse files

Adding trim in the ini_parser::get_ini_string() function

parent 35cc408f
No related branches found
No related tags found
2 merge requests!46Master,!21Master
...@@ -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";
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment