Project

General

Profile

« Previous | Next » 

Revision 2022

Added by darkviper over 10 years ago

! framework/initialize.php WB will die if magic_quotes is set to 'on'

View differences:

initialize.php
206 206
	$iPhpDeclaredClasses = sizeof(get_declared_classes());
207 207
	$sDbConnectType = 'url'; // depending from class WbDatabase it can be 'url' or 'dsn'
208 208
// disable all kind of magic_quotes in PHP versions before 5.4 ---
209
	if(version_compare(PHP_VERSION, '5.4.0', '<')) {
210
		@set_magic_quotes_runtime(0);
209
	if (function_exists('get_magic_quotes_gpc') && get_magic_quotes_gpc()) {
210
		$sMsg = '<p style="color: #ff0000;">WebsiteBaker is not able to run with magic_quotes=on!!<br />'
211
		      . 'Please change your PHP-ini or add a _htaccess file to switch this setting to off!<br />'
212
		      . 'If you have problems to solve that, ask your hosting provider for it.<br  />'
213
		      . 'The very best solution is the use of PHP-5.4 and up</p>';
214
		die($sMsg);
211 215
	}
212 216
// load configuration ---
213 217
	$aCfg = initReadSetupFile();

Also available in: Unified diff