mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
Stupid, damn bbcode parser issues with < and > within [code] with HTML disabled fixed
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3297 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
b22e1663d1
commit
6b801753e1
1 changed files with 1 additions and 1 deletions
|
@ -482,7 +482,7 @@ function bbencode_first_pass_pda($text, $uid, $open_tag, $close_tag, $close_tag_
|
||||||
{
|
{
|
||||||
$code_entities_match = array('#<#', '#>#', '#"#', '#:#', '#\[#', '#\]#', '#\(#', '#\)#', '#\{#', '#\}#');
|
$code_entities_match = array('#<#', '#>#', '#"#', '#:#', '#\[#', '#\]#', '#\(#', '#\)#', '#\{#', '#\}#');
|
||||||
$code_entities_replace = array('<', '>', '"', ':', '[', ']', '(', ')', '{', '}');
|
$code_entities_replace = array('<', '>', '"', ':', '[', ']', '(', ')', '{', '}');
|
||||||
$between_tags = htmlentities($between_tags);
|
$between_tags = preg_replace($code_entities_match, $code_entities_replace, $between_tags);
|
||||||
}
|
}
|
||||||
$text = $before_start_tag . substr($start_tag, 0, $start_length - 1) . ":$curr_nesting_depth:$uid]";
|
$text = $before_start_tag . substr($start_tag, 0, $start_length - 1) . ":$curr_nesting_depth:$uid]";
|
||||||
$text .= $between_tags . substr($close_tag_new, 0, $close_tag_new_length - 1) . ":$curr_nesting_depth:$uid]";
|
$text .= $between_tags . substr($close_tag_new, 0, $close_tag_new_length - 1) . ":$curr_nesting_depth:$uid]";
|
||||||
|
|
Loading…
Add table
Reference in a new issue