Project

General

Profile

Actions

Bug #19066

closed

(tx_cms_showpic) don't send HTTP 200OK header when file was not found

Added by Rene Herpertz almost 16 years ago. Updated almost 11 years ago.

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

showpic.php.patch (1.05 KB) showpic.php.patch Administrator Admin, 2008-07-06 13:45
Actions #1

Updated by Alexander Opitz about 11 years ago

  • Category deleted (Communication)
  • Status changed from New to Needs Feedback
  • Target version deleted (0)

The issue is very old, does this issue exists in newer versions of TYPO3 CMS (4.5 or 6.1)?

Actions #2

Updated by Alexander Opitz almost 11 years ago

  • Status changed from Needs Feedback to Closed
  • Is Regression set to No

No feedback for over 90 days.

Actions

Also available in: Atom PDF