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:
parent
6adeba6640
commit
33c66093fb
|
@ -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] );
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue