[REF][PHP8.1] Permit single quotes within html attributes
authorSeamus Lee <seamuslee001@gmail.com>
Thu, 28 Jul 2022 21:44:02 +0000 (07:44 +1000)
committerSeamus Lee <seamuslee001@gmail.com>
Thu, 28 Jul 2022 21:44:02 +0000 (07:44 +1000)
CRM/Core/Page.php

index 76a3e7e26e256d079bd22666405eb2d68fccb816..a252b994247321b4faa21117dd0b44de835f5b8c 100644 (file)
@@ -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\"";
       }
     }