From 81d4647770a823f6c9bdef98aad4dde8653c311f Mon Sep 17 00:00:00 2001 From: Seamus Lee Date: Sat, 29 May 2021 02:26:53 +0000 Subject: [PATCH] Fix call to function CRM_Utils_String::createRandom by ensuring that the length is the first parameter not 2nd --- CRM/Utils/Request.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Utils/Request.php b/CRM/Utils/Request.php index 49b84ad8cd10..0ab38f489862 100644 --- a/CRM/Utils/Request.php +++ b/CRM/Utils/Request.php @@ -43,7 +43,7 @@ class CRM_Utils_Request { */ public static function id() { if (!isset(\Civi::$statics[__CLASS__]['id'])) { - \Civi::$statics[__CLASS__]['id'] = uniqid() . CRM_Utils_String::createRandom(CRM_Utils_String::ALPHANUMERIC, 4); + \Civi::$statics[__CLASS__]['id'] = uniqid() . CRM_Utils_String::createRandom(4, CRM_Utils_String::ALPHANUMERIC); } return \Civi::$statics[__CLASS__]['id']; }