Commit 3bf049b5 authored by jmontoya's avatar jmontoya

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

parent 0ab659dc
......@@ -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;
......
Markdown is supported
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