From a3a420c3e6f3805a91448c877a8a423f7232198c Mon Sep 17 00:00:00 2001 From: Angie Byron Date: Sun, 12 Oct 2008 06:27:06 +0000 Subject: Roll-back of #242873: This caused horrendous problems with SimpleTest on some configurations. --- 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 ada98b6fb..754479311 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($account->name); + drupal_set_title(check_plain($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($account->name); + drupal_set_title(check_plain($account->name)); return drupal_get_form('user_profile_form', $account, $category); } -- cgit v1.2.3