Actions
Bug #19066
closed(tx_cms_showpic) don't send HTTP 200OK header when file was not found
Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2008-07-06
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
4.2
PHP Version:
5.2
Tags:
Complexity:
Is Regression:
No
Sprint Focus:
Description
Problem:
When a file is no longer available tx_cms_showpic/showpic.php sends a HTTP 200OK header containing "The given file was not found" as message body. Therefore search spiders keep indexed the missing file e.g. http://www.google.com/search?hl=en&q=tx_cms_showpic+%22The+given+file+was+not+found%22&sa=N&filter=0 .
Cause:
The message is sent by a die()-function call without a proper HTTP 404 header.
Solution:
Just insert a header("HTTP/1.0 404 Not Found"); function call before the die()-function call.
(issue imported from #M8908)
Files
Actions