0012436.patch

Administrator Admin, 2009-11-05 18:04

Download (1.52 KB)

View differences:

typo3/sysext/install/mod/class.tx_install.php (Arbeitskopie)
1644 1644
				TYPO3 needs session support
1645 1645
			',3);
1646 1646
		}
1647

  
1648
			// Suhosin/Hardened PHP:
1649
		$suhosinDescription = 'Suhosin limits the number of elements that can be submitted in forms to the server. ' .
1650
			'This will affect for example the "All configuration" section in the Install Tool or Inline Relational ' .
1651
			'Record Editing (IRRE) with many child records.';
1652
		if (extension_loaded('suhosin')) {
1653
			$suhosinSuggestion = 'At least a value of 400 is suggested.';
1654

  
1655
			$suhosinRequestMaxVars = ini_get('suhosin.request.max_vars');
1656
			$suhosinPostMaxVars = ini_get('suhosin.post.max_vars');
1657
			$suhosinRequestMaxVarsType = ($suhosinRequestMaxVars < 400 ? 2 : -1);
1658
			$suhosinPostMaxVarsType = ($suhosinPostMaxVars < 400 ? 2 : -1);
1659
			$suhosinType = ($suhosinRequestMaxVars < 400 || $suhosinPostMaxVars < 400 ? 2 : -1);
1660

  
1661
			$this->message($ext, 'Suhosin/Hardened PHP is loaded', $suhosinDescription, $suhosinType);
1662
			$this->message($ext, 'suhosin.request.max_vars: ' . $suhosinRequestMaxVars, $suhosinSuggestion, $suhosinRequestMaxVarsType);
1663
			$this->message($ext, 'suhosin.post.max_vars: ' . $suhosinPostMaxVars, $suhosinSuggestion, $suhosinPostMaxVarsType);
1664
		} else {
1665
			$this->message($ext, 'Suhosin/Hardened PHP is not loaded', $suhosinDescription, 0);
1666
		}
1647 1667
	}
1648 1668

  
1649 1669
	/**