Skip to content
Snippets Groups Projects
Commit 38a01810 authored by Morton Jonuschat's avatar Morton Jonuschat Committed by Susanne Moog
Browse files

[BUGFIX] Linkvalidator: Fix exception when validating external links

Provide an instance of \GuzzleHttp\Cookie\CookieJar for the 'cookies'
option when validating an external link, the previous value of true
resulted in an exception.

Releases: master
Resolves: #76631
Change-Id: I0a9089ff1a442783b4484cf1d512adb520d95dca
Reviewed-on: https://review.typo3.org/48577


Reviewed-by: default avatarWouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: default avatarJoerg Boesche <typo3@joergboesche.de>
Tested-by: default avatarJoerg Boesche <typo3@joergboesche.de>
Reviewed-by: default avatarSusanne Moog <typo3@susannemoog.de>
Tested-by: default avatarSusanne Moog <typo3@susannemoog.de>
parent a09abf9e
No related merge requests found
......@@ -14,6 +14,7 @@ namespace TYPO3\CMS\Linkvalidator\Linktype;
* The TYPO3 project - inspiring people to share!
*/
use GuzzleHttp\Cookie\CookieJar;
use GuzzleHttp\Exception\TooManyRedirectsException;
use TYPO3\CMS\Core\Http\RequestFactory;
use TYPO3\CMS\Core\Utility\GeneralUtility;
......@@ -66,7 +67,7 @@ class ExternalLinktype extends AbstractLinktype
}
$options = array(
'cookies' => true,
'cookies' => GeneralUtility::makeInstance(CookieJar::class),
'allow_redirects' => ['strict' => true]
);
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment