Remove not required hack param

This commit is contained in:
Laurent Destailleur 2026-06-10 19:14:07 +02:00
parent b9b44cc890
commit 6ecf7b7c16

View file

@ -207,11 +207,6 @@ function getOnlineSignatureUrl($mode, $type, $ref = '', $localorexternal = 1, $o
// For multicompany
if (!empty($out) && isModEnabled('multicompany')) {
$out .= "&entity=".(empty($obj->entity) ? '' : (int) $obj->entity); // Check the entity because we may have the same reference in several entities
} elseif ($mode == 0) {
// Bcrypt output (dol_hash type '0') can legitimately end with '.' or '/', which Gmail and several mobile mail
// clients strip from autolinked URLs and break the signature link. Append a stable trailing parameter that
// the receiver ignores so the URL never ends with the hash. Only for the real URL (mode 0), not the preview.
$out .= "&_=1";
}
return $out;