Commit 538dd38d authored by Oliver Hader's avatar Oliver Hader
Browse files

Fixed bug #13292: TYPO3 error message reveals path to web root (thanks to Xavier Perseguers)

git-svn-id: https://svn.typo3.org/TYPO3v4/Core/branches/TYPO3_4-1@8319 709f56b5-9817-0410-a4d7-c38de5d9e867
parent c388b117
2010-07-28 Oliver Hader <oliver@typo3.org>
* Fixed bug #14978: XSS in file tree (thanks to Georg Ringer)
* Fixed bug #13292: TYPO3 error message reveals path to web root (thanks to Xavier Perseguers)
2010-05-17 Oliver Hader <oliver@typo3.org>
......
......@@ -122,7 +122,10 @@ if (!$temp_path || substr($temp_path,-strlen(TYPO3_mainDir))!=TYPO3_mainDir) { /
echo 'It seems you are trying to run the TYPO3 source libraries DIRECTLY! You cannot do that.<br />
Please read the installation documents for more information.';
} else {
echo 'This happens if the last '.strlen(TYPO3_mainDir).' characters of this path, '.$temp_path.' ($temp_path), is NOT "'.TYPO3_mainDir.'" for some reason.<br />
$temp_path_parts = explode('/', $temp_path);
$temp_path_parts = array_slice($temp_path_parts, count($temp_path_parts) - 3);
$temp_path = '..../' . implode('/', $temp_path_parts);
echo 'This happens if the last ' . strlen(TYPO3_mainDir) . ' characters of this path, ' . $temp_path . ' (end of $temp_path), is NOT "' . TYPO3_mainDir . '" for some reason.<br />
You may have a strange server configuration.
Or maybe you didn\'t set constant TYPO3_MOD_PATH in your module?';
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment