Skip to content

Commit

Permalink
[BUGFIX] Use absolute path for clipboard thumbnails
Browse files Browse the repository at this point in the history
Resolves: #93278
Releases: master
Change-Id: Ie4b0e533fda887b92fdbd5c4e870435c12b091ca
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/67439
Tested-by: TYPO3com <noreply@typo3.com>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Benni Mack <benni@typo3.org>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: Benni Mack <benni@typo3.org>
  • Loading branch information
o-ba authored and bmack committed Jan 13, 2021
1 parent 9787b16 commit 4931fc2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion typo3/sysext/backend/Classes/Clipboard/Clipboard.php
Expand Up @@ -390,7 +390,9 @@ public function getContentFromTab($pad)
$size = $folder ? '' : '(' . GeneralUtility::formatSize((int)$fileObject->getSize()) . 'bytes)';
if (!$folder && $fileObject->isImage()) {
$thumb = [
'image' => $fileObject->process(ProcessedFile::CONTEXT_IMAGEPREVIEW, [])->getPublicUrl(),
'image' => PathUtility::getAbsoluteWebPath(
$fileObject->process(ProcessedFile::CONTEXT_IMAGEPREVIEW, [])->getPublicUrl() ?? ''
),
'title' => htmlspecialchars($fileObject->getName())
];
}
Expand Down

0 comments on commit 4931fc2

Please sign in to comment.