summaryrefslogtreecommitdiffstatshomepage
path: root/modules/php/php.module
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2009-11-01 21:26:44 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2009-11-01 21:26:44 +0000
commitca8eee7545f75c199bde0121bd6a0792d67c5b91 (patch)
tree5e805f30c93c7a005e0cb422dd0ea95ca849d84f /modules/php/php.module
parentb882d991d01544fb458cb58614fdba4fab0997eb (diff)
downloaddrupal-ca8eee7545f75c199bde0121bd6a0792d67c5b91.tar.gz
drupal-ca8eee7545f75c199bde0121bd6a0792d67c5b91.zip
#192056 by effulgentsia, Dave Cohen, andypost, hswong3i, geodaniel, pwolanin, and dahacouk: Ensure user's raw login name is never output directly.
Diffstat (limited to 'modules/php/php.module')
-rw-r--r--modules/php/php.module2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/php/php.module b/modules/php/php.module
index c4e2dfb921c7..4208acbd0bff 100644
--- a/modules/php/php.module
+++ b/modules/php/php.module
@@ -105,7 +105,7 @@ print t(\'Welcome visitor! Thank you for visiting.\');
<pre>
global $user;
if ($user->uid) {
- print t(\'Welcome @name! Thank you for visiting.\', array(\'@name\' => $user->name));
+ print t(\'Welcome @name! Thank you for visiting.\', array(\'@name\' => format_username($user)));
}
else {
print t(\'Welcome visitor! Thank you for visiting.\');