Skip to content

Commit

Permalink
[BUGFIX] Filter global SSL setting to boolean first [TER-133] [TER-14…
Browse files Browse the repository at this point in the history
…2] (#180)
  • Loading branch information
bmgrieger authored Oct 12, 2023
1 parent 43a31c1 commit 111a95f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Classes/UserFunctions/CheckConfiguration.php
Original file line number Diff line number Diff line change
Expand Up @@ -178,10 +178,11 @@ protected function checkFilesAccessibility(string $realDirectoryPath, string $di
$fileFinder = (new Finder())->name($this->fileTypePattern)->in($realDirectoryPath)->depth(0);
foreach ($fileFinder->files() as $file) {
$publicUrl = sprintf('%s/%s/%s', $this->domain, $directoryPath, $file->getRelativePathname());
$verify = $GLOBALS['TYPO3_CONF_VARS']['HTTP']['verify'];
$statusCode = (new Client())->request(
'HEAD',
$publicUrl,
['http_errors' => false, 'verify' => $GLOBALS['TYPO3_CONF_VARS']['HTTP']['verify'] ?? true]
['http_errors' => false, 'verify' => filter_var($verify, FILTER_VALIDATE_BOOLEAN, FILTER_NULL_ON_FAILURE) ?? $verify ?? true]
)->getStatusCode();

if ($statusCode !== 403) {
Expand Down

0 comments on commit 111a95f

Please sign in to comment.