Skip to content

Commit

Permalink
FIX: preview translation on pictures (Dolibarr#29887)
Browse files Browse the repository at this point in the history
  • Loading branch information
evarisk-charles committed Jun 7, 2024
1 parent 0a48d1a commit 40b24dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion htdocs/core/lib/functions.lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -11180,7 +11180,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");

Expand Down

0 comments on commit 40b24dc

Please sign in to comment.