mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 22:10:45 +02:00
[ticket/security-264] Ensure HTML entity state after removing formatting
SECURITY-264
This commit is contained in:
@@ -31,7 +31,7 @@ class utils implements \phpbb\textformatter\utils_interface
|
||||
// Insert a space before <s> and <e> then remove formatting
|
||||
$xml = preg_replace('#<[es]>#', ' $0', $xml);
|
||||
|
||||
return \s9e\TextFormatter\Utils::removeFormatting($xml);
|
||||
return utf8_htmlspecialchars(\s9e\TextFormatter\Utils::removeFormatting($xml));
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user