From 74e3c74b813c2da89d99c86bc1f6d8f11d978fba Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Wed, 10 Jan 2007 15:17:51 +0000 Subject: - Always check the username. --- modules/user/user.module | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'modules/user') 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); } -- cgit v1.2.3