1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-05-05 07:07:51 +02:00

do not allow [size=0]

git-svn-id: file:///svn/phpbb/trunk@8256 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
Meik Sievertsen 2007-11-29 14:09:32 +00:00
parent df58b050f0
commit f3fd02548a
2 changed files with 7 additions and 0 deletions

View File

@ -107,6 +107,7 @@
<li>[Fix] Check error reporting level for all error level. This fixes a problem for hosts having manipulated the error handler. (Bug #14831)</li>
<li>[Fix] Recache Moderators when copying permissions. (Bug #15384)</li>
<li>[Fix] Propagate sort options in mcp_forums (Bug #15464)</li>
<li>[Change] Do not allow [size=0] bbcodes (font-size of 0)</li>
</ul>

View File

@ -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 . ']';
}