Closed (fixed)
Project:
Drupal core
Version:
x.y.z
Component:
user.module
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
24 Jan 2006 at 23:19 UTC
Updated:
10 Feb 2006 at 16:01 UTC
Jump to comment: Most recent file
This patch prevents the submit and form_id array elements being saved to the data column on user registration.
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | unset_0.patch | 449 bytes | chx |
| #3 | unset.patch | 427 bytes | chx |
| user.module_23.diff | 852 bytes | drumm |
Comments
Comment #1
moshe weitzman commentedgosh, this bug again. we've seen it with system_settings and one other place. there are a few more system variables which might need to be unset() see http://drupal.org/node/41170. maybe we can do the unset() in a central place and then both of these issues will use that code?
Comment #2
dries commented+1 for fixing this in a central place.
Comment #3
chx commentedComment #4
dries commentedCan we clean up some code in system.module too?
Comment #5
NaX commentedI was looking in the PHP manuals at the unset function just before reading this issue and I would like to know if you want to unset these variables globally or locally.
If you in a function and you use unset() it only destroys the local version of the variable even if it is passed by reference.
To unset the global version of the variable you need to unset it using the $GLOBALS array. So my question is how do you want to unset these variables. Globally or locally, or is that unimportant.
Comment #6
chx commentedNaX is right. Dries, there is nothing to clean up in system. This fixes (partially) the issue moshe talks of.
Comment #7
dries commentedCommitted. Thanks.
Comment #8
(not verified) commented