From ca8eee7545f75c199bde0121bd6a0792d67c5b91 Mon Sep 17 00:00:00 2001 From: Angie Byron Date: Sun, 1 Nov 2009 21:26:44 +0000 Subject: #192056 by effulgentsia, Dave Cohen, andypost, hswong3i, geodaniel, pwolanin, and dahacouk: Ensure user's raw login name is never output directly. --- modules/user/user.test | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/user/user.test') diff --git a/modules/user/user.test b/modules/user/user.test index 1220e6c54..67d885722 100644 --- a/modules/user/user.test +++ b/modules/user/user.test @@ -701,7 +701,7 @@ class UserPictureTestCase extends DrupalWebTestCase { // user's profile page. $text = t('The image was resized to fit within the maximum allowed dimensions of %dimensions pixels.', array('%dimensions' => $test_dim)); $this->assertRaw($text, t('Image was resized.')); - $alt = t("@user's picture", array('@user' => $this->user->name)); + $alt = t("@user's picture", array('@user' => format_username($this->user))); $style = variable_get('user_picture_style', ''); $this->assertRaw(image_style_url($style, $pic_path), t("Image is displayed in user's edit page")); -- cgit v1.2.3