Actions
Bug #88958
closedLinkvalidator: incorrect range specification
Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Linkvalidator
Target version:
-
Start date:
2019-08-14
Due date:
% Done:
100%
Estimated time:
TYPO3 Version:
8
PHP Version:
Tags:
Complexity:
no-brainer
Is Regression:
Sprint Focus:
Description
EXT:linkvalidator/Classes/Linktype/ExternalLinktype.php
, function checkLink
near line 88:
// HEAD was not allowed or threw an error, now trying GET $options['headers']['Range'] = 'bytes = 0 - 4048'; $isValidUrl = $this->requestUrl($url, 'GET', $options);
According to RFC 7233 there can be no spaces in range specification. Some web servers strictly follow this and throw a 416 http error.
Simple remove spaces like this:
// HEAD was not allowed or threw an error, now trying GET $options['headers']['Range'] = 'bytes=0-4048'; $isValidUrl = $this->requestUrl($url, 'GET', $options);
Actions