Bug 323 - Allow config files entries to have spaces.

git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@1973 e3e1d417-86f3-4887-817a-d78f3d33393f
This commit is contained in:
stan 2006-05-08 13:19:50 +00:00
parent 6adeba6640
commit 33c66093fb
1 changed files with 2 additions and 1 deletions

View File

@ -29,7 +29,8 @@ while ( !feof($cfg) )
$str = fgets( $cfg, 256 );
if ( preg_match( '/^\s*$/', $str )) { continue; }
elseif ( preg_match( '/^\s*#/', $str )) { continue; }
elseif ( preg_match( '/^\s*([^=\s]+)\s*=\s*(.+)\s*$/', $str, $matches ))
elseif ( preg_match( '/^\s*([^=\s]+)\s*=\s*(.+?)\s*$/', $str, $matches ))
{
define( $matches[1], $matches[2] );
}