From ab7597c7ec2d62aadf82c4c647d3dc63dae8de90 Mon Sep 17 00:00:00 2001 From: mcramer <m.cramer@pixcept.de> Date: Thu, 16 Aug 2012 14:53:05 -0400 Subject: [PATCH] Implemented FS#2379 - Add perl option to web sites (apache2 mod_perl2) Fixed (partly) FS#2310 - Template switch not working in mailuser module, for dashlets and the login page --- server/lib/classes/ini_parser.inc.php | 7 +++---- 1 files changed, 3 insertions(+), 4 deletions(-) diff --git a/server/lib/classes/ini_parser.inc.php b/server/lib/classes/ini_parser.inc.php index d98146a..003d04c 100644 --- a/server/lib/classes/ini_parser.inc.php +++ b/server/lib/classes/ini_parser.inc.php @@ -28,7 +28,7 @@ EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -class ini_parser { +class ini_parser{ var $config; @@ -37,9 +37,8 @@ $lines = explode("\n",$ini); foreach($lines as $line) { - + $line = trim($line); if($line != '') { - $line = trim($line); if(preg_match("/^\[([\w\d_]+)\]$/", $line, $matches)) { $section = strtolower($matches[1]); } elseif(preg_match("/^([\w\d_]+)=(.*)$/", $line, $matches) && $section != null) { @@ -70,4 +69,4 @@ } -?> \ No newline at end of file +?> -- Gitblit v1.9.1