diff --git modules/profile/profile.admin.inc modules/profile/profile.admin.inc index d95c1ba..cbae9b2 100644 --- modules/profile/profile.admin.inc +++ modules/profile/profile.admin.inc @@ -119,7 +119,7 @@ function theme_profile_admin_overview($variables) { // class names won't contain invalid characters. $categories[$category] = $category_number; $category_field['#attributes']['class'] = array('profile-category', 'profile-category-' . $category_number); - $rows[] = array(array('data' => $category, 'colspan' => 7, 'class' => array('category'))); + $rows[] = array(array('data' => check_plain($category), 'colspan' => 7, 'class' => array('category'))); $rows[] = array('data' => array(array('data' => '' . t('No fields in this category. If this category remains empty when saved, it will be removed.') . '', 'colspan' => 7)), 'class' => array('category-' . $category_number . '-message', 'category-message', 'category-populated')); // Make it draggable only if there is more than one field diff --git modules/profile/profile.module modules/profile/profile.module index 7e957d3..289602c 100644 --- modules/profile/profile.module +++ modules/profile/profile.module @@ -355,7 +355,7 @@ function profile_user_view($account) { } function _profile_form_explanation($field) { - $output = $field->explanation; + $output = filter_xss_admin($field->explanation); if ($field->type == 'list') { $output .= ' ' . t('Put each item on a separate line or separate them by commas. No HTML allowed.');