diff --git a/core/includes/bootstrap.inc b/core/includes/bootstrap.inc index e1c15fe..effc583 100644 --- a/core/includes/bootstrap.inc +++ b/core/includes/bootstrap.inc @@ -1622,7 +1622,7 @@ function format_string($string, array $args = array()) { * @ingroup sanitization */ function check_plain($text) { - return htmlspecialchars($text, ENT_QUOTES, 'UTF-8'); + return htmlspecialchars($text, ENT_QUOTES, 'UTF-8', FALSE); } /** diff --git a/core/modules/system/lib/Drupal/system/Tests/Common/XssUnitTest.php b/core/modules/system/lib/Drupal/system/Tests/Common/XssUnitTest.php index dff85bd..2ca4e71 100644 --- a/core/modules/system/lib/Drupal/system/Tests/Common/XssUnitTest.php +++ b/core/modules/system/lib/Drupal/system/Tests/Common/XssUnitTest.php @@ -58,6 +58,10 @@ function testInvalidMultiByte() { function testEscaping() { $text = check_plain("