From 14e010cd535416b10df14cfd19253861a99ccfb9 Mon Sep 17 00:00:00 2001 From: "Paul S. Owen" Date: Thu, 13 Jan 2005 22:25:40 +0000 Subject: [PATCH] Censor topic name, signature, occupation, interests and location git-svn-id: file:///svn/phpbb/trunk@5059 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/memberlist.php | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/phpBB/memberlist.php b/phpBB/memberlist.php index 30ff98526d..fd5f5a5e7a 100644 --- a/phpBB/memberlist.php +++ b/phpBB/memberlist.php @@ -358,7 +358,7 @@ switch ($mode) if ($member['user_sig']) { - $member['user_sig'] = smilie_text($member['user_sig']); + $member['user_sig'] = censor_text(smilie_text($member['user_sig'])); } $poster_avatar = ''; @@ -396,19 +396,18 @@ switch ($mode) } } - $template->assign_vars(array( 'POSTS_DAY' => sprintf($user->lang['POST_DAY'], $posts_per_day), 'POSTS_PCT' => sprintf($user->lang['POST_PCT'], $percentage), 'ACTIVE_FORUM' => $active_f_name, 'ACTIVE_FORUM_POSTS'=> ($active_f_count == 1) ? sprintf($user->lang['USER_POST'], 1) : sprintf($user->lang['USER_POSTS'], $active_f_count), 'ACTIVE_FORUM_PCT' => sprintf($user->lang['POST_PCT'], $active_f_pct), - 'ACTIVE_TOPIC' => $active_t_name, + 'ACTIVE_TOPIC' => censor_text($active_t_name), 'ACTIVE_TOPIC_POSTS'=> ($active_t_count == 1) ? sprintf($user->lang['USER_POST'], 1) : sprintf($user->lang['USER_POSTS'], $active_t_count), 'ACTIVE_TOPIC_PCT' => sprintf($user->lang['POST_PCT'], $active_t_pct), - 'OCCUPATION' => (!empty($member['user_occ'])) ? $member['user_occ'] : '', - 'INTERESTS' => (!empty($member['user_interests'])) ? $member['user_interests'] : '', + 'OCCUPATION' => (!empty($member['user_occ'])) ? censor_text($member['user_occ']) : '', + 'INTERESTS' => (!empty($member['user_interests'])) ? censor_text($member['user_interests']) : '', 'SIGNATURE' => (!empty($member['user_sig'])) ? str_replace("\n", '
', $member['user_sig']) : '', 'AVATAR_IMG' => $poster_avatar,