Commit e027bbc9 authored by Elias Villiger's avatar Elias Villiger
Browse files

F6596 Clean up tmp file - refs #6596

parent 76f6313b
Pipeline #962 passed with stage
in 1 minute and 47 seconds
......@@ -274,11 +274,12 @@ class Download {
$rcArgsString = KeyValueStringParser::unparse($rcArgs, '=', '&');
$url = Support::mergeUrlComponents('', $tmpFilename, $rcArgsString);
$filename = $this->html2pdf->page2pdf($token, $url);
HelperFile::cleanTempFiles([$tmpFilename]);
} else {
$url = $value;
$filename = $this->html2pdf->page2pdf($token, $value);
}
$filename = $this->html2pdf->page2pdf($token, $url);
}
break;
......@@ -375,6 +376,7 @@ class Download {
* @param string $outputMode OUTPUT_MODE_DIRECT | OUTPUT_MODE_FILE
* @return string Filename of the generated file. The filename only points to a real existing filename with $outputMode=OUTPUT_MODE_FILE
* @throws CodeException
* @throws DbException
* @throws DownloadException
* @throws UserFormException
* @throws UserReportException
......
Supports Markdown
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