From 6ecf7b7c1663d7e807084903b1fa306f5c4376de Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 10 Jun 2026 19:14:07 +0200 Subject: [PATCH] Remove not required hack param --- htdocs/core/lib/signature.lib.php | 5 ----- 1 file changed, 5 deletions(-) diff --git a/htdocs/core/lib/signature.lib.php b/htdocs/core/lib/signature.lib.php index 7267ecf8514..ba78d5c008c 100644 --- a/htdocs/core/lib/signature.lib.php +++ b/htdocs/core/lib/signature.lib.php @@ -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;