Project

General

Profile

« Previous | Next » 

Revision 1885

Added by Dietmar over 11 years ago

  1. protect magic setter to fix security issue in WbDatabase
    + additional arguments for Charset and TablePrefix in WbDatabase::doConnect
    + WbDatabase now can activate SET NAMES by doConnect argument
    + WbDatabase now provide TablePrefix property also (WbDatabase::TablePrefix)
    + initialize.php now also support Charset and TablePrefix settings from setup.ini.php
    ! in setup.ini.php some keys are renamed (WB_URL => AppUrl and ADMIN_DIRECTORY => AcpDir)

View differences:

index.php
103 103
			if(is_writeable($sConfigFile))
104 104
			{
105 105
// already installed? it's not empty
106
				if ( filesize($sConfigFile) > 128)
106
				if ( filesize($sConfigFile) > 100)
107 107
				{
108 108
					$config = '<font class="bad">Already installed? Check!</font>';
109 109
// try to open and to write
......
277 277
	} else {
278 278
		$config = $sTmp;
279 279
	}
280
	$sConfigFile = preg_match('/(?:rename)/i',$config) ? $sConfigFile : 'setup.ini.php';
280
	$sConfigFile = preg_match('/(?:rename)/i',$config) ? $sConfigFile : 'config.php';
281 281
	$installFlag = $installFlag && ($sTmp == '');
282 282
?>
283 283
		<tr>

Also available in: Unified diff