[development] admin

Ken Winters 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...
URL: http://lists.drupal.org/pipermail/development/attachments/20091120/8681d7ab/attachment.html 

More information about the development mailing list