jmontoya
2010-09-02 3bf049b535e8869d968165b8000c643fe99b19dd
Adding trim in the server ini_parser::get_ini_string() function
1 files modified
6 ■■■■ changed files
server/lib/classes/ini_parser.inc.php 6 ●●●● patch | view | raw | blame | history
server/lib/classes/ini_parser.inc.php
@@ -58,7 +58,11 @@
        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;