Skip to content

Commit

Permalink
[ticket/13377] Fix decoding for www type URLs in function decode_mess…
Browse files Browse the repository at this point in the history
…age()

PHPBB3-13377
  • Loading branch information
rxu committed Jul 7, 2015
1 parent f81a2bc commit 1365519
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion phpBB/includes/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -2749,7 +2749,7 @@ function get_preg_expression($mode)
return array(
'#<!\-\- e \-\-><a href="mailto:(.*?)">.*?</a><!\-\- e \-\->#',
'#<!\-\- l \-\-><a (?:class="[\w-]+" )?href="(.*?)(?:(&amp;|\?)sid=[0-9a-f]{32})?">.*?</a><!\-\- l \-\->#',
'#<!\-\- ([mw]) \-\-><a (?:class="[\w-]+" )?href="(.*?)">.*?</a><!\-\- \1 \-\->#',
'#<!\-\- ([mw]) \-\-><a (?:class="[\w-]+" )?href="(.*?)">(.*?)</a><!\-\- \1 \-\->#',
'#<!\-\- s(.*?) \-\-><img src="\{SMILIES_PATH\}\/.*? \/><!\-\- s\1 \-\->#',
'#<!\-\- .*? \-\->#s',
'#<.*?>#s',
Expand Down
2 changes: 1 addition & 1 deletion phpBB/includes/functions_content.php
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,7 @@ function decode_message(&$message, $bbcode_uid = '')
$message = str_replace($match, $replace, $message);

$match = get_preg_expression('bbcode_htm');
$replace = array('\1', '\1', '\2', '\1', '', '');
$replace = array('\1', '\1', '\3', '\1', '', '');

$message = preg_replace($match, $replace, $message);
}
Expand Down

0 comments on commit 1365519

Please sign in to comment.