Closed (fixed)
Project:
Real Name
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
16 Jul 2009 at 15:28 UTC
Updated:
10 Nov 2010 at 05:30 UTC
In PHP 5 objects are passed by reference - which means that in template_preprocess_user_picture_realname() when the realname is assigned as the name on $account it leaks out in to other code - which gives me some issues with other code thinking that the realname is the username.
I think I have read some related issues somwehere in the issue queue - but I can't find it right now so I'm attaching a patch for it here.
It fixes the problem I had.
| Comment | File | Size | Author |
|---|---|---|---|
| realname_leaking_realname_in_avatar_preprocess.patch | 815 bytes | voxpelli |
Comments
Comment #1
Rob T commentedI'm shocked I haven't seen this come up before. Thanks for posting your patch.
Comment #2
voxpelli commentedComment #3
sgabe commentedI can confirm this, patch looks good and applies fine.
Comment #4
dave reidCommitted to CVS. Thanks!
http://drupal.org/cvs?commit=442264