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:
parent
df58b050f0
commit
f3fd02548a
@ -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>
|
||||
|
||||
|
@ -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 . ']';
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user