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:
@@ -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)]);
|
||||
|
||||
|
Reference in New Issue
Block a user