Commit 3fd22f10 authored by Richard Mansfield's avatar Richard Mansfield
Browse files

Don't pass or check session key when requesting help popups (bug #714967)



Change-Id: I38bb6470f80ef55d02b8850b6d707827491844f7
Signed-off-by: default avatarRichard Mansfield <richard.mansfield@catalyst.net.nz>
parent 53348d27
......@@ -176,7 +176,7 @@ function processingStop() {
// End message related functions
// Function to post a data object to a json script.
function sendjsonrequest(script, data, rtype, successcallback, errorcallback, quiet) {
function sendjsonrequest(script, data, rtype, successcallback, errorcallback, quiet, anon) {
//log('sendjsonrequest(script=', script, ', data=', data, ', rtype=', rtype, ', success=', successcallback, ', error=', errorcallback, ', quiet=', quiet, ')');
donothing = function () { return; };
if (typeof(successcallback) != 'function') {
......@@ -186,7 +186,9 @@ function sendjsonrequest(script, data, rtype, successcallback, errorcallback, qu
errorcallback = donothing;
}
processingStart();
data.sesskey = config.sesskey;
if (!anon) {
data.sesskey = config.sesskey;
}
rtype = rtype.toLowerCase();
......@@ -416,7 +418,6 @@ function contextualHelp(formName, helpName, pluginType, pluginName, page, sectio
if (contextualHelpDeferrable && contextualHelpDeferrable.cancel) {
contextualHelpDeferrable.cancel();
}
badIE = true;
sendjsonrequest(url, url_params, 'GET', function (data) {
if (data.error) {
......@@ -437,7 +438,7 @@ function contextualHelp(formName, helpName, pluginType, pluginName, page, sectio
processingStop();
contextualHelpOpened = true;
},
true);
true, true);
}
contextualHelpContainer.focus();
}
......
......@@ -28,6 +28,7 @@
define('INTERNAL', 1);
define('JSON', 1);
define('PUBLIC', 1);
define('NOSESSKEY', 1);
require(dirname(dirname(__FILE__)) . '/init.php');
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment