mirror of
https://github.com/phpbb/phpbb.git
synced 2025-01-18 14:48:28 +01:00
[ticket/16287] Correctly pass json response to PHP file
PHPBB3-16287
This commit is contained in:
parent
d50d1101fb
commit
a0ffbfce31
@ -74,7 +74,7 @@ phpbb.prepareSendStats = function () {
|
|||||||
var $sendStatisticsSuccess = $('<input />', {
|
var $sendStatisticsSuccess = $('<input />', {
|
||||||
type: 'hidden',
|
type: 'hidden',
|
||||||
name: 'send_statistics_response',
|
name: 'send_statistics_response',
|
||||||
value: res
|
value: JSON.stringify(res)
|
||||||
});
|
});
|
||||||
$sendStatisticsSuccess.appendTo('p.submit-buttons');
|
$sendStatisticsSuccess.appendTo('p.submit-buttons');
|
||||||
|
|
||||||
|
@ -90,7 +90,7 @@ class acp_help_phpbb
|
|||||||
|
|
||||||
if (!empty($response))
|
if (!empty($response))
|
||||||
{
|
{
|
||||||
$decoded_response = json_decode($response, true);
|
$decoded_response = json_decode(htmlspecialchars_decode($response), true);
|
||||||
|
|
||||||
if ($decoded_response && isset($decoded_response['status']) && $decoded_response['status'] == 'ok')
|
if ($decoded_response && isset($decoded_response['status']) && $decoded_response['status'] == 'ok')
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user