We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 666d813 commit 8792ed3Copy full SHA for 8792ed3
inc/abstractitiltarget.class.php
@@ -2331,7 +2331,7 @@ protected function prepareUploadedFiles(array $data): array {
2331
foreach (PluginFormcreatorCommon::getDocumentsFromTag($data['content']) as $document) {
2332
$prefix = uniqid('', true);
2333
$filename = $prefix . 'image_paste.' . pathinfo($document['filename'], PATHINFO_EXTENSION);
2334
- if (!copy(GLPI_DOC_DIR . '/' . $document['filepath'], GLPI_TMP_DIR . '/' . $filename)) {
+ if (!@copy(GLPI_DOC_DIR . '/' . $document['filepath'], GLPI_TMP_DIR . '/' . $filename)) {
2335
continue;
2336
}
2337
0 commit comments