Commit 3bf049b5 authored by jmontoya's avatar jmontoya
Browse files

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

parent 0ab659dc
...@@ -58,7 +58,11 @@ class ini_parser { ...@@ -58,7 +58,11 @@ class ini_parser {
foreach($this->config as $section => $data) { foreach($this->config as $section => $data) {
$content .= "[$section]\n"; $content .= "[$section]\n";
foreach($data as $item => $value) { 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; return $content;
......
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