Apply input filters on Background and Opinion fields of user profiles

(DBOINCP-188)
This commit is contained in:
Tristan Olive 2015-05-21 00:41:03 -04:00
parent 7ed4ab5bad
commit d704a2905c
1 changed files with 2 additions and 2 deletions

View File

@ -51,8 +51,8 @@ $name = check_plain($account->boincuser_name);
$join_date = date('d F Y', $account->created);
$country = check_plain($content_profile->field_country[0]['value']);
$website = check_plain($content_profile->field_url[0]['value']);
$background = $content_profile->field_background[0]['value'];
$opinions = $content_profile->field_opinions[0]['value'];
$background = check_markup($content_profile->field_background[0]['value'], $content_profile->format, FALSE);
$opinions = check_markup($content_profile->field_opinions[0]['value'], $content_profile->format, FALSE);
$user_links = array();
$profile_is_approved = ($content_profile->status AND !$content_profile->moderate);
$user_is_moderator = user_access('edit any profile content');