diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php index 4ccdc1b3ec..d4be3ec65e 100644 --- a/phpBB/includes/functions.php +++ b/phpBB/includes/functions.php @@ -1647,7 +1647,7 @@ function decode_message(&$message, $bbcode_uid = '') '#<.*?>#s' ); - $replace = array('\1', '\1', '\1', '\1', '\1', '', '<\1>'); + $replace = array('\1', '\1', '\1', '\1', '\1', '', ''); $message = preg_replace($match, $replace, $message); diff --git a/phpBB/includes/functions_user.php b/phpBB/includes/functions_user.php index 6ac71e86db..b722549720 100644 --- a/phpBB/includes/functions_user.php +++ b/phpBB/includes/functions_user.php @@ -577,7 +577,7 @@ function user_ban($mode, $ban, $ban_len, $ban_len_other, $ban_exclude, $ban_reas switch ($mode) { case 'user': - $sql_where = 'WHERE session_user_id IN (' . implode(', ', $banlist_ary) . ')'; + $sql_where = (in_array('*', $banlist_ary)) ? '' : 'WHERE session_user_id IN (' . implode(', ', $banlist_ary) . ')'; break; case 'ip': diff --git a/phpBB/includes/message_parser.php b/phpBB/includes/message_parser.php index d05dd1e48f..ddb783e4b7 100644 --- a/phpBB/includes/message_parser.php +++ b/phpBB/includes/message_parser.php @@ -288,7 +288,7 @@ class bbcode_firstpass extends bbcode '#