diff options
author | Bruno Ais <brunoaiss@gmail.com> | 2013-07-24 11:38:04 +0100 |
---|---|---|
committer | Bruno Ais <brunoaiss@gmail.com> | 2013-07-24 11:38:04 +0100 |
commit | 13fa346e8f5b496f5e51ea20e9420a48228a5072 (patch) | |
tree | 1f464a647a47aa8b3614b16076afb7061386ad11 /phpBB/memberlist.php | |
parent | 402d987ccbeacb494f1147cdee047a6cf1f19f7b (diff) | |
download | forums-13fa346e8f5b496f5e51ea20e9420a48228a5072.tar forums-13fa346e8f5b496f5e51ea20e9420a48228a5072.tar.gz forums-13fa346e8f5b496f5e51ea20e9420a48228a5072.tar.bz2 forums-13fa346e8f5b496f5e51ea20e9420a48228a5072.tar.xz forums-13fa346e8f5b496f5e51ea20e9420a48228a5072.zip |
[ticket/11656] Made the check for the bitfield just like other PR's
sub-task of ticket PHPBB3-11635:
find and fix all bypasses of generate_text_for_*
PHPBB3-11656
Diffstat (limited to 'phpBB/memberlist.php')
-rw-r--r-- | phpBB/memberlist.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/phpBB/memberlist.php b/phpBB/memberlist.php index f8ee82084c..018526d034 100644 --- a/phpBB/memberlist.php +++ b/phpBB/memberlist.php @@ -561,7 +561,8 @@ switch ($mode) if ($member['user_sig']) { - $member['user_sig'] = generate_text_for_display($member['user_sig'], $member['user_sig_bbcode_uid'], $member['user_sig_bbcode_bitfield'], OPTION_FLAG_BBCODE | OPTION_FLAG_SMILIES, true); + $parse_flags = ($member['user_sig_bbcode_bitfield'] ? OPTION_FLAG_BBCODE : 0) | OPTION_FLAG_SMILIES; + $member['user_sig'] = generate_text_for_display($member['user_sig'], $member['user_sig_bbcode_uid'], $member['user_sig_bbcode_bitfield'], $parse_flags, true); } $poster_avatar = phpbb_get_user_avatar($member); |