Bug #18213 ยป bug_7533.diff
typo3/init.php (working copy) | ||
---|---|---|
/***************************************************************
|
||
* Copyright notice
|
||
*
|
||
* (c) 1999-2007 Kasper Skaarhoj (kasperYYYY@typo3.com)
|
||
* (c) 1999-2008 Kasper Skaarhoj (kasperYYYY@typo3.com)
|
||
* All rights reserved
|
||
*
|
||
* This script is part of the TYPO3 project. The TYPO3 project is
|
||
... | ... | |
* @subpackage core
|
||
*/
|
||
// *******************************
|
||
// Checking PHP version
|
||
// *******************************
|
||
if (version_compare(phpversion(), '5.1', '<')) die ('TYPO3 requires PHP 5.1.0 or higher.');
|
||
// *******************************
|
||
// Set error reporting
|
||
// *******************************
|
||
... | ... | |
// *******************************
|
||
// Checking environment
|
||
// *******************************
|
||
if (t3lib_div::int_from_ver(phpversion())<5001000) die ('TYPO3 requires PHP 5.1.0 or higher.');
|
||
if (isset($_POST['GLOBALS']) || isset($_GET['GLOBALS'])) die('You cannot set the GLOBALS-array from outside the script.');
|
||
if (!get_magic_quotes_gpc()) {
|
||
t3lib_div::addSlashesOnArray($_GET);
|
typo3/sysext/cms/tslib/index_ts.php (working copy) | ||
---|---|---|
/***************************************************************
|
||
* Copyright notice
|
||
*
|
||
* (c) 1999-2007 Kasper Skaarhoj (kasperYYYY@typo3.com)
|
||
* (c) 1999-2008 Kasper Skaarhoj (kasperYYYY@typo3.com)
|
||
* All rights reserved
|
||
*
|
||
* This script is part of the TYPO3 project. The TYPO3 project is
|
||
... | ... | |
*/
|
||
// *******************************
|
||
// Checking PHP version
|
||
// *******************************
|
||
if (version_compare(phpversion(), '5.1', '<')) die ('TYPO3 requires PHP 5.1.0 or higher.');
|
||
// *******************************
|
||
// Set error reporting
|
||
// *******************************
|
||
error_reporting (E_ALL ^ E_NOTICE);
|
||
... | ... | |
// *******************************
|
||
// Checking environment
|
||
// *******************************
|
||
if (t3lib_div::int_from_ver(phpversion())<5001000) die ('TYPO3 requires PHP 5.1.0 or higher.');
|
||
if (isset($_POST['GLOBALS']) || isset($_GET['GLOBALS'])) die('You cannot set the GLOBALS-array from outside the script.');
|
||
if (!get_magic_quotes_gpc()) {
|
||
$TT->push('Add slashes to GET/POST arrays','');
|