I've come across what may be a bug.. I'm up the walls at the moment so I'm putting it up here for your good selves to decide. I've been using ajax on the admin side, I modified header.php to ease this a little. Anyhow, in my module, I have a function/action called addevent;within this I want to use a little ajax call.
My ajax URI variable string looks like so:
Code: Select all
var xajaxRequestUri="http://mchaleml.localdomain/admin/moduleinterface.php?mact=McHEvents,m1_,addevent,0&_s_=a349e55b&hl=en_US";
Array ( [mact] => McHEvents,m1_,addevent,0 [amp;_s_] => a349e55b [amp;hl] => en_US )
So I am redirected to login because the secure param exist.
As I'm under some pressure (moreso after a day with firebug), I have simply changed line 776 in lib/xajax/xajax.inc.php
from
Code: Select all
$html .= "var xajaxRequestUri=\"".str_replace('&', '&', $this->sRequestURI)."\";\n";
Code: Select all
$html .= "var xajaxRequestUri=\"$this->sRequestURI\"\n";
(the str_replace seems like a 'peculiar' place/means of carrying out this task).
Alan