From dbbafff1a1034fdac93fd8aea203cc66758c3c26 Mon Sep 17 00:00:00 2001
From: tbrehm <t.brehm@ispconfig.org>
Date: Fri, 10 Sep 2010 06:12:25 -0400
Subject: [PATCH] Patch from Filip that enables settting of sys_user.modules and sys_user.startmodule via client_add remote API call

---
 interface/lib/classes/ini_parser.inc.php |   12 +++---------
 1 files changed, 3 insertions(+), 9 deletions(-)

diff --git a/interface/lib/classes/ini_parser.inc.php b/interface/lib/classes/ini_parser.inc.php
index 67e6542..6821667 100644
--- a/interface/lib/classes/ini_parser.inc.php
+++ b/interface/lib/classes/ini_parser.inc.php
@@ -1,15 +1,7 @@
 <?php
-/**
- * ini parser 
- * 
- * @author Till Brehm
- * @copyright  2005, Till Brehm, projektfarm Gmbh
- * @version 0.1
- * @package ISPConfig
- */
 
 /*
-Copyright (c) 2006, Till Brehm, projektfarm Gmbh
+Copyright (c) 2007, Till Brehm, projektfarm Gmbh
 All rights reserved.
 
 Redistribution and use in source and binary forms, with or without modification,
@@ -67,6 +59,8 @@
 			$content .= "[$section]\n";
 			foreach($data as $item => $value) {
 				if($item != ''){
+					$value 	= trim($value);
+					$item 	= trim($item);
                     $content .= "$item=$value\n";
                 }
 			}

--
Gitblit v1.9.1