summaryrefslogtreecommitdiff
path: root/modules/user
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2008-10-12 06:27:06 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2008-10-12 06:27:06 +0000
commita3a420c3e6f3805a91448c877a8a423f7232198c (patch)
tree355650769d2e533c6dc6c6d38ad057cca622b727 /modules/user
parentf76acb2d9d421ff705be6fd2713b8cc2c007e1df (diff)
downloadbrdo-a3a420c3e6f3805a91448c877a8a423f7232198c.tar.gz
brdo-a3a420c3e6f3805a91448c877a8a423f7232198c.tar.bz2
Roll-back of #242873: This caused horrendous problems with SimpleTest on some configurations.
Diffstat (limited to 'modules/user')
-rw-r--r--modules/user/user.pages.inc4
1 files changed, 2 insertions, 2 deletions
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);
}