diff --git a/interface/lib/classes/ini_parser.inc.php b/interface/lib/classes/ini_parser.inc.php
index 76bbc131bf0be16d80e7d9193be3ea5cbaf90818..682166726b79abb1ccb8125c4fb4e21d1f975795 100644
--- a/interface/lib/classes/ini_parser.inc.php
+++ b/interface/lib/classes/ini_parser.inc.php
@@ -59,6 +59,8 @@ class ini_parser{
 			$content .= "[$section]\n";
 			foreach($data as $item => $value) {
 				if($item != ''){
+					$value 	= trim($value);
+					$item 	= trim($item);
                     $content .= "$item=$value\n";
                 }
 			}