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

bug fixes

schema changes
i really hope nothing went wrong


git-svn-id: file:///svn/phpbb/trunk@6371 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
David M
2006-09-16 06:07:06 +00:00
parent 9479bc428f
commit fe1367b31e
16 changed files with 1525 additions and 320 deletions

View File

@@ -505,7 +505,8 @@ class bbcode_firstpass extends bbcode
do
{
$pos = strlen($in);
for ($i = 0; $i < strlen($tok); ++$i)
$tok_len = strlen($tok);
for ($i = 0; $i < $tok_len; ++$i)
{
$tmp_pos = strpos($in, $tok{$i});
@@ -523,7 +524,7 @@ class bbcode_firstpass extends bbcode
if ($tok == ']')
{
// if $tok is ']' the buffer holds a tag
if ($buffer == '/list' && sizeof($list_end_tags))
if (strtolower($buffer) == '/list' && sizeof($list_end_tags))
{
$out .= array_pop($list_end_tags) . ']';
$tok = '[';
@@ -539,6 +540,12 @@ class bbcode_firstpass extends bbcode
{
array_push($list_end_tags, '/list:o:' . $this->bbcode_uid);
}
if (strtolower(substr($buffer, 0, 4)) == 'list')
{
$buffer = 'list' . substr($buffer, 4, $pos);
}
$out .= $buffer . ':' . $this->bbcode_uid . ']';
$tok = '[';
}