Skip to content
Snippets Groups Projects
Commit 3bf049b5 authored by jmontoya's avatar jmontoya
Browse files

Adding trim in the server ini_parser::get_ini_string() function

parent 0ab659dc
No related branches found
No related tags found
No related merge requests found
......@@ -58,7 +58,11 @@ class ini_parser {
foreach($this->config as $section => $data) {
$content .= "[$section]\n";
foreach($data as $item => $value) {
if($value != '') $content .= "$item=$value\n";
if($value != '') {
$value = trim($value);
$item = trim($item);
$content .= "$item=$value\n";
}
}
}
return $content;
......
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