allow the value side of config lines potentially be empty.
parent
1d0e721ba2
commit
3fa91a30a3
|
@ -42,7 +42,7 @@ while ( !feof($cfg) )
|
|||
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] );
|
||||
}
|
||||
fclose( $cfg );
|
||||
|
|
Loading…
Reference in New Issue