Skip to content

Commit

Permalink
fix(abstractitiltarget): copy may generate unwanted ouput to navigator
Browse files Browse the repository at this point in the history
  • Loading branch information
btry committed Oct 27, 2022
1 parent 666d813 commit 8792ed3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inc/abstractitiltarget.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -2331,7 +2331,7 @@ protected function prepareUploadedFiles(array $data): array {
foreach (PluginFormcreatorCommon::getDocumentsFromTag($data['content']) as $document) {
$prefix = uniqid('', true);
$filename = $prefix . 'image_paste.' . pathinfo($document['filename'], PATHINFO_EXTENSION);
if (!copy(GLPI_DOC_DIR . '/' . $document['filepath'], GLPI_TMP_DIR . '/' . $filename)) {
if (!@copy(GLPI_DOC_DIR . '/' . $document['filepath'], GLPI_TMP_DIR . '/' . $filename)) {
continue;
}

Expand Down

0 comments on commit 8792ed3

Please sign in to comment.