Project

General

Profile

Actions

Bug #10589

closed

HTTP errors might not be detected

Added by Tolleiv Nietsch over 13 years ago. Updated over 10 years ago.

Status:
Closed
Priority:
Should have
Assignee:
Category:
Linkvalidator
Target version:
-
Start date:
2010-11-02
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

In case the request itself went fine but returned an HTTP 404 (or anything > 400) the result array comming back from t3lib_div::getURL() doesn't indicate that error with $report["error"] = 0, therefore the http_code itself needs to be checked too...

The attached patch fixes it.

How to test: Create a link pointing to http://typo3.com/Pagedoesntexists.123456789.html (will cause 404) or http://typo3.org/Pagedoesntexists.123456789.html (will cause 503).


Files

v1.patch (2.5 KB) v1.patch Tolleiv Nietsch, 2010-11-02 14:22
Actions

Also available in: Atom PDF