1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-10 18:54:08 +02:00

[ticket/security/243] Limit size BBCode to 4 numeric characters

SECURITY-243
This commit is contained in:
Marc Alexander
2019-07-17 22:02:32 +02:00
parent b5a997ce18
commit c934d3fcfd
3 changed files with 3 additions and 3 deletions

View File

@@ -339,7 +339,7 @@ class parser implements \phpbb\textformatter\parser_interface
*/
static public function filter_font_size($size, $max_size, Logger $logger)
{
if (!is_int($size))
if (!is_numeric($size))
{
$logger->err('INVALID_FONT_SIZE', ['invalid_size' => htmlspecialchars($size)]);