mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
[ticket/11768] Made capturing code blocks a bit more flexible
PHPBB3-11768
This commit is contained in:
parent
a611366bd3
commit
44fc3d64da
1 changed files with 1 additions and 1 deletions
|
@ -209,7 +209,7 @@ class renderer implements \phpbb\textformatter\renderer_interface
|
||||||
* @see bbcode::bbcode_second_pass_code()
|
* @see bbcode::bbcode_second_pass_code()
|
||||||
*/
|
*/
|
||||||
$html = preg_replace_callback(
|
$html = preg_replace_callback(
|
||||||
'#(<code>)(.*?)(</code>)#is',
|
'#(<code[^>]*>)(.*?)(</code>)#is',
|
||||||
function ($captures)
|
function ($captures)
|
||||||
{
|
{
|
||||||
$code = $captures[2];
|
$code = $captures[2];
|
||||||
|
|
Loading…
Add table
Reference in a new issue