From: Seamus Lee Date: Thu, 28 Jul 2022 21:44:02 +0000 (+1000) Subject: [REF][PHP8.1] Permit single quotes within html attributes X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=c77acc83878a78a946c53c87264e26a87ec35323;hp=748db282b44424c086f580d23ebf0361cf834055;p=civicrm-core.git [REF][PHP8.1] Permit single quotes within html attributes --- 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\""; } }