Index: typo3/sysext/cms/tslib/showpic.php =================================================================== --- typo3/sysext/cms/tslib/showpic.php (revision 3674) +++ typo3/sysext/cms/tslib/showpic.php (working copy) @@ -149,6 +149,7 @@ // *********************** // If no file-param is given, we must exit if (!$this->file) { + header("HTTP/1.0 404 Not Found"); die('Parameter Error: No file given.'); } @@ -164,6 +165,7 @@ $GLOBALS['TYPO3_CONF_VARS']['SYS']['encryptionKey'].'|'); if ($md5_value!=$this->md5) { + header("HTTP/1.0 404 Not Found"); die('Parameter Error: Wrong parameters sent.'); } @@ -174,9 +176,11 @@ $test_file=PATH_site.$this->file; if (!t3lib_div::validPathStr($test_file)) { + header("HTTP/1.0 404 Not Found"); die('Parameter Error: No valid filepath'); } if (!@is_file($test_file)) { + header("HTTP/1.0 404 Not Found"); die('The given file was not found'); } } @@ -260,4 +264,4 @@ $SOBE->init(); $SOBE->main(); $SOBE->printContent(); -?> \ No newline at end of file +?>