Project

General

Profile

Actions

Bug #85965

closed

FileWriter fails to check for valid log file path

Added by Sebastian Michaelsen about 6 years ago. Updated about 6 years ago.

Status:
Rejected
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2018-08-24
Due date:
% Done:

0%

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

Description

\TYPO3\CMS\Core\Log\Writer\FileWriter::setLogFile() uses GeneralUtility::getFileAbsFileName() to get the absolute path to a given $logFile. GeneralUtility::getFileAbsFileName() always returns a string, even in an error case it returns an empty string. However the return value is checked for being null.

https://github.com/TYPO3/TYPO3.CMS/commit/bfdc332650a92839e8ae73ec21b29f23609b5a1e#r30280568

That means that exception #1444374805 can never be thrown.

This applies to v7, v8 and master.

Actions

Also available in: Atom PDF