From c77acc83878a78a946c53c87264e26a87ec35323 Mon Sep 17 00:00:00 2001 From: Seamus Lee Date: Fri, 29 Jul 2022 07:44:02 +1000 Subject: [PATCH] [REF][PHP8.1] Permit single quotes within html attributes --- CRM/Core/Page.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Core/Page.php b/CRM/Core/Page.php index 76a3e7e26e..a252b99424 100644 --- a/CRM/Core/Page.php +++ b/CRM/Core/Page.php @@ -511,7 +511,7 @@ class CRM_Core_Page { $attribs = array_merge($standardAttribs, $attribs); foreach ($attribs as $attrib => $val) { if (strlen($val)) { - $val = htmlspecialchars($val); + $val = htmlspecialchars($val, ENT_COMPAT); $attribString .= " $attrib=\"$val\""; } } -- 2.25.1