Skip to content

Commit

Permalink
Merge pull request #24083 from seamuslee001/php81_page_singlequotes
Browse files Browse the repository at this point in the history
[REF][PHP8.1] Permit single quotes within html attributes
  • Loading branch information
demeritcowboy authored Jul 30, 2022
2 parents 7cc1f81 + c77acc8 commit 5c84a37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CRM/Core/Page.php
Original file line number Diff line number Diff line change
Expand Up @@ -511,7 +511,7 @@ public static function crmIcon($icon, $text = NULL, $condition = TRUE, $attribs
$attribs = array_merge($standardAttribs, $attribs);
foreach ($attribs as $attrib => $val) {
if (strlen($val)) {
$val = htmlspecialchars($val);
$val = htmlspecialchars($val, ENT_COMPAT);
$attribString .= " $attrib=\"$val\"";
}
}
Expand Down

0 comments on commit 5c84a37

Please sign in to comment.