You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The downloadReport funciton in ExternalConfiguration.php is using a hardcoded backslash in the returned path, which is incorrect on Linux. (apologies I dont know why the line breaks arent appearing in the code block):
It should use the php constant DIRECTORY_SEPARATOR and as the path is already stored in the filePathName variable the return fucntion can be corrected to return $filePathName;
The text was updated successfully, but these errors were encountered:
The downloadReport funciton in ExternalConfiguration.php is using a hardcoded backslash in the returned path, which is incorrect on Linux. (apologies I dont know why the line breaks arent appearing in the code block):
function downloadReport($downloadData, $fileName){ $filePathName = __DIR__. DIRECTORY_SEPARATOR .$fileName; $file = fopen($filePathName, "w"); fwrite($file, $downloadData); fclose($file); return __DIR__.'\\'.$fileName; }
It should use the php constant DIRECTORY_SEPARATOR and as the path is already stored in the filePathName variable the return fucntion can be corrected to
return $filePathName;
The text was updated successfully, but these errors were encountered: