diff --git a/Documentation/License.rst b/Documentation/License.rst index 6a51955c8263c231099a2bc7d63042caa5afd274..11f7db35109585769451a7999e77f799608cacf4 100644 --- a/Documentation/License.rst +++ b/Documentation/License.rst @@ -59,3 +59,4 @@ Software distributed together with QFQ * Event Emitter - https://git.io/ee * FullCalendar - https://fullcalendar.io/ * Datetimepicker - https://getdatepicker.com/ +* HTMLPurifier - https://github.com/ezyang/htmlpurifier diff --git a/extension/Classes/Core/AbstractBuildForm.php b/extension/Classes/Core/AbstractBuildForm.php index 6cd993ac4e7d69e51b067606a98e5fafb90a937c..1a75e62a3783ce1b5f997654cd7219f78a1aa78d 100644 --- a/extension/Classes/Core/AbstractBuildForm.php +++ b/extension/Classes/Core/AbstractBuildForm.php @@ -3533,7 +3533,7 @@ abstract class AbstractBuildForm { * @return void */ private function setTinymceEditorToolbarAttributes(&$toolbarFlags, &$attributeList, $attributeName, $specialAttributeName = '') { - if (!$toolbarFlags[$attributeName]) { + if (!empty($toolbarFlags[$attributeName]) && !$toolbarFlags[$attributeName]) { if ($specialAttributeName === '') { $attributeList .= ' ' . $attributeName; } else { diff --git a/extension/Classes/Core/Save.php b/extension/Classes/Core/Save.php index 8b35b7d1680de5a7b6cb1abc90ccdd3608c0b2f5..a4add1321890ee077cef347e801d8d41184db876 100644 --- a/extension/Classes/Core/Save.php +++ b/extension/Classes/Core/Save.php @@ -1766,7 +1766,7 @@ class Save { */ function custom_strip_tags($html, string $allowedTags) { $allowed_tags = explode(',', $allowedTags); - $allowed_tags = array_map(strtolower, $allowed_tags); + $allowed_tags = array_map('strtolower', $allowed_tags); $regex_tags = '/<\/?([^>\s]+)[^>]*>/i'; $matches = array(); preg_match_all($regex_tags, $html, $matches);