summaryrefslogtreecommitdiff
path: root/modules/user/user.pages.inc
diff options
context:
space:
mode:
Diffstat (limited to 'modules/user/user.pages.inc')
-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);
}