2011-07-26, 08:22 PM
This user has been denied support.
This fixes the change question button problem for me, but I only tested with Firefox/Opera.--- jscripts/regsecureq.js 2010-11-30 23:58:16.000000000 +0100
+++ jscripts/regsecureq.js 2011-07-26 23:16:00.000000000 +0200
@@ -26,8 +26,8 @@
}
else if(request.responseText)
{
- $('regsecureq_id').value = request.responseJSON.qid;
- $('regsecureq').update(request.responseJSON.q);
+ $('regsecureq_id').value = request.responseText.evalJSON()['qid'];
+ $('regsecureq').update(request.responseText.evalJSON()['q']);
}
if(this.spinner)
--- inc/plugins/regsecureq.php 2010-12-01 02:49:48.000000000 +0100
+++ inc/plugins/regsecureq.php 2011-07-26 23:15:00.000000000 +0200
@@ -323,10 +323,7 @@
// Cleanup for JSON
$regsecureq = preg_replace("/\r?\n/", "\\n", addslashes($regsecureq));
- echo '{';
- echo "'qid':'".$regsecureq_id."',";
- echo "'q':'".$regsecureq."'";
- echo '}';
+ echo '{"qid": '.$regsecureq_id.', "q": "'.$regsecureq.'"}';
}
else if($mybb->input['action'] == "validate_question")
{