FIX: preview translation on pictures (#29887) (#29888)

This commit is contained in:
evarisk-charles 2024-06-07 18:00:00 +02:00 committed by GitHub
parent 886b76c207
commit a878e92167
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -11390,7 +11390,7 @@ function getAdvancedPreviewUrl($modulepart, $relativepath, $alldata = 0, $param
// old behavior, return a string
if ($isAllowedForPreview) {
$tmpurl = DOL_URL_ROOT.'/document.php?modulepart='.urlencode($modulepart).'&attachment=0&file='.urlencode($relativepath).($param ? '&'.$param : '');
$title = $langs->trans("Preview");
$title = $langs->transnoentities("Preview");
//$title = '%27-alert(document.domain)-%27';
//$tmpurl = 'file='.urlencode("'-alert(document.domain)-'_small.jpg");