Skip to content

Commit 8792ed3

Browse files
committed
fix(abstractitiltarget): copy may generate unwanted ouput to navigator
1 parent 666d813 commit 8792ed3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

inc/abstractitiltarget.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2331,7 +2331,7 @@ protected function prepareUploadedFiles(array $data): array {
23312331
foreach (PluginFormcreatorCommon::getDocumentsFromTag($data['content']) as $document) {
23322332
$prefix = uniqid('', true);
23332333
$filename = $prefix . 'image_paste.' . pathinfo($document['filename'], PATHINFO_EXTENSION);
2334-
if (!copy(GLPI_DOC_DIR . '/' . $document['filepath'], GLPI_TMP_DIR . '/' . $filename)) {
2334+
if (!@copy(GLPI_DOC_DIR . '/' . $document['filepath'], GLPI_TMP_DIR . '/' . $filename)) {
23352335
continue;
23362336
}
23372337

0 commit comments

Comments
 (0)