20150520-GeneralUtility.php.diff

Nils Blattner, 2015-05-20 16:09

Download (729 Bytes)

View differences:

typo3/sysext/core/Classes/Utility/GeneralUtility.php 2015-05-20 16:05:51.000000000 +0200
3869 3869
	 * @return boolean
3870 3870
	 */
3871 3871
	static public function verifyFilenameAgainstDenyPattern($filename) {
3872
		$pattern = '/[[:cntrl:]]/';
3872
		$pattern = '/[[:cntrl:]]/u';
3873 3873
		if ((string)$filename !== '' && (string)$GLOBALS['TYPO3_CONF_VARS']['BE']['fileDenyPattern'] !== '') {
3874
			$pattern = '/(?:[[:cntrl:]]|' . $GLOBALS['TYPO3_CONF_VARS']['BE']['fileDenyPattern'] . ')/i';
3874
			$pattern = '/(?:[[:cntrl:]]|' . $GLOBALS['TYPO3_CONF_VARS']['BE']['fileDenyPattern'] . ')/ui';
3875 3875
		}
3876 3876
		return !preg_match($pattern, $filename);
3877 3877
	}