From 8292bdd40ab3a9e70d44dad0e681d0222c1556cb Mon Sep 17 00:00:00 2001 From: Angie Byron Date: Mon, 13 Oct 2008 00:33:05 +0000 Subject: Re-commit of #242873 by pwolanin and bjaspan: Make drupal_set_title() check_plain() by default. --- modules/user/user.pages.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/user') diff --git a/modules/user/user.pages.inc b/modules/user/user.pages.inc index 754479311..ada98b6fb 100644 --- a/modules/user/user.pages.inc +++ b/modules/user/user.pages.inc @@ -147,7 +147,7 @@ function user_logout() { * Menu callback; Displays a user or user profile page. */ function user_view($account) { - drupal_set_title(check_plain($account->name)); + drupal_set_title($account->name); // Retrieve all profile fields and attach to $account->content. user_build_content($account); @@ -218,7 +218,7 @@ function template_preprocess_user_profile_category(&$variables) { * @see user_edit_submit() */ function user_edit($account, $category = 'account') { - drupal_set_title(check_plain($account->name)); + drupal_set_title($account->name); return drupal_get_form('user_profile_form', $account, $category); } -- cgit v1.2.3