From d217cab61d4b5fe94c4d902090bf42bb04744ecd Mon Sep 17 00:00:00 2001 From: acydburn Date: Thu, 29 Nov 2007 14:09:32 +0000 Subject: [PATCH] do not allow [size=0] git-svn-id: http://code.phpbb.com/svn/phpbb/trunk@8256 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/docs/CHANGELOG.html | 1 + phpBB/includes/message_parser.php | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/phpBB/docs/CHANGELOG.html b/phpBB/docs/CHANGELOG.html index ccf5aa429..b3370cd86 100644 --- a/phpBB/docs/CHANGELOG.html +++ b/phpBB/docs/CHANGELOG.html @@ -107,6 +107,7 @@
  • [Fix] Check error reporting level for all error level. This fixes a problem for hosts having manipulated the error handler. (Bug #14831)
  • [Fix] Recache Moderators when copying permissions. (Bug #15384)
  • [Fix] Propagate sort options in mcp_forums (Bug #15464)
  • +
  • [Change] Do not allow [size=0] bbcodes (font-size of 0)
  • diff --git a/phpBB/includes/message_parser.php b/phpBB/includes/message_parser.php index acc454703..6e601e149 100644 --- a/phpBB/includes/message_parser.php +++ b/phpBB/includes/message_parser.php @@ -208,6 +208,12 @@ class bbcode_firstpass extends bbcode return '[size=' . $stx . ']' . $in . '[/size]'; } + // Do not allow size=0 + if ($stx <= 0) + { + return '[size=' . $stx . ']' . $in . '[/size]'; + } + return '[size=' . $stx . ':' . $this->bbcode_uid . ']' . $in . '[/size:' . $this->bbcode_uid . ']'; } -- 2.11.4.GIT