diff options
author | Angie Byron <webchick@24967.no-reply.drupal.org> | 2008-10-13 00:33:05 +0000 |
---|---|---|
committer | Angie Byron <webchick@24967.no-reply.drupal.org> | 2008-10-13 00:33:05 +0000 |
commit | 8292bdd40ab3a9e70d44dad0e681d0222c1556cb (patch) | |
tree | 7e66d08bef9b38acd705e9e918129083435af3b8 /modules/user | |
parent | 448640f1380c39ec3be39791d7efb449f150e1ed (diff) | |
download | brdo-8292bdd40ab3a9e70d44dad0e681d0222c1556cb.tar.gz brdo-8292bdd40ab3a9e70d44dad0e681d0222c1556cb.tar.bz2 |
Re-commit of #242873 by pwolanin and bjaspan: Make drupal_set_title() check_plain() by default.
Diffstat (limited to 'modules/user')
-rw-r--r-- | modules/user/user.pages.inc | 4 |
1 files changed, 2 insertions, 2 deletions
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); } |