From ed6a28a1bedfc6f361a6c24921dd544cd32320d1 Mon Sep 17 00:00:00 2001 From: Tim Otten Date: Thu, 29 Oct 2015 14:08:24 -0700 Subject: [PATCH] CRM-17466 - Refine error message --- CRM/Utils/Signer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Utils/Signer.php b/CRM/Utils/Signer.php index 881c710b41..c1c36a24fb 100644 --- a/CRM/Utils/Signer.php +++ b/CRM/Utils/Signer.php @@ -122,7 +122,7 @@ class CRM_Utils_Signer { public function validate($token, $params) { list ($salt, $signature) = explode($this->signDelim, $token); if (strlen($salt) != self::SALT_LEN) { - throw new Exception("Invalid salt [$token]=[$salt][$signature]"); + throw new Exception("Token contains invalid salt [" . urlencode($token) . "]"); } $newToken = $this->sign($params, $salt); return ($token == $newToken); -- 2.25.1