kwinters at coalmarch.com
Fri Nov 20 13:49:47 UTC 2009
On Nov 19, 2009, at 10:39 PM, Jeff Greenberg wrote:
> So, the way I handled it was to hook_init before securepages becomes
> involved, and check the requested URL, and if it's the second, I
> simply overwrite securepage's variable entry with a variable_set
> with the new url. Works like a charm.
I know you solved your problem, but this is a race condition and will
cause problems under load. The variable_set function alters the
database, which won't just affect the current process.
Instead, put the into directly into global $conf; which is where
variable_get reads from.
- Ken Winters
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the development