[Nagvis-checkins] SF.net Git: nagvis: map configuration parser ignores spaces/ tabs before closing
Brought to you by:
larsi-
From: lars <la...@us...> - 2010-03-21 19:50:24
|
Module: nagvis Branch: master Commit: edc23f647695fa4fc637f1182fdbb2c91f1e54db URL: http://nagvis.git.sourceforge.net/git/gitweb.cgi?p=nagvis/nagvis;a=commit;h=edc23f647695fa4fc637f1182fdbb2c91f1e54db Author: LaMi <la...@ve...> Date: Sat Mar 20 15:45:10 2010 +0100 map configuration parser ignores spaces/tabs before closing brackets of objects or comments --- share/server/core/classes/GlobalMapCfg.php | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/share/server/core/classes/GlobalMapCfg.php b/share/server/core/classes/GlobalMapCfg.php index 233de10..5218bca 100644 --- a/share/server/core/classes/GlobalMapCfg.php +++ b/share/server/core/classes/GlobalMapCfg.php @@ -1402,7 +1402,7 @@ class GlobalMapCfg { // Don't recognize empty lines if($file[$l] != '') { // Don't recognize comments and empty lines, do nothing with ending delimiters - $sFirstChar = substr($file[$l], 0, 1); + $sFirstChar = substr(ltrim($file[$l]), 0, 1); if($sFirstChar != ';' && $sFirstChar != '#' && $sFirstChar != '}') { // Determine if this is a new object definition if(strpos($file[$l], 'define') !== FALSE) { |