aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB
diff options
context:
space:
mode:
authorJoshyPHP <s9e.dev@gmail.com>2015-03-06 10:46:59 +0100
committerJoshyPHP <s9e.dev@gmail.com>2015-04-02 19:16:03 +0200
commit44fc3d64dafdadd1959ab53dd7e0d1be67c75c1b (patch)
treece2e197700da535c58a6b3a65160c978347406c6 /phpBB
parenta611366bd398c02b47aa71b0fdaa9c16765d0f6b (diff)
downloadforums-44fc3d64dafdadd1959ab53dd7e0d1be67c75c1b.tar
forums-44fc3d64dafdadd1959ab53dd7e0d1be67c75c1b.tar.gz
forums-44fc3d64dafdadd1959ab53dd7e0d1be67c75c1b.tar.bz2
forums-44fc3d64dafdadd1959ab53dd7e0d1be67c75c1b.tar.xz
forums-44fc3d64dafdadd1959ab53dd7e0d1be67c75c1b.zip
[ticket/11768] Made capturing code blocks a bit more flexible
PHPBB3-11768
Diffstat (limited to 'phpBB')
-rw-r--r--phpBB/phpbb/textformatter/s9e/renderer.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/phpbb/textformatter/s9e/renderer.php b/phpBB/phpbb/textformatter/s9e/renderer.php
index 42567098d9..c896c9f1c7 100644
--- a/phpBB/phpbb/textformatter/s9e/renderer.php
+++ b/phpBB/phpbb/textformatter/s9e/renderer.php
@@ -209,7 +209,7 @@ class renderer implements \phpbb\textformatter\renderer_interface
* @see bbcode::bbcode_second_pass_code()
*/
$html = preg_replace_callback(
- '#(<code>)(.*?)(</code>)#is',
+ '#(<code[^>]*>)(.*?)(</code>)#is',
function ($captures)
{
$code = $captures[2];