summaryrefslogtreecommitdiff
path: root/modules/user
diff options
context:
space:
mode:
Diffstat (limited to 'modules/user')
-rw-r--r--modules/user/user.module6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/user/user.module b/modules/user/user.module
index 34e935daa..f2ffe0fac 100644
--- a/modules/user/user.module
+++ b/modules/user/user.module
@@ -554,7 +554,7 @@ function user_block($op = 'list', $delta = 0, $edit = array()) {
case 1:
if ($menu = theme('menu_tree')) {
- $block['subject'] = $user->uid ? $user->name : t('Navigation');
+ $block['subject'] = $user->uid ? check_plain($user->name) : t('Navigation');
$block['content'] = $menu;
}
return $block;
@@ -1431,7 +1431,7 @@ function user_edit($category = 'account') {
}
$form['#attributes']['enctype'] = 'multipart/form-data';
- drupal_set_title($account->name);
+ drupal_set_title(check_plain($account->name));
return $form;
}
@@ -1517,7 +1517,7 @@ function user_view($uid = 0) {
$function($account, $fields);
}
- drupal_set_title($account->name);
+ drupal_set_title(check_plain($account->name));
return theme('user_profile', $account, $fields);
}