20 Nov
2009
20 Nov
'09
2:49 p.m.
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