1
0
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:
Marc Alexander 2020-01-03 10:17:40 +01:00
parent d50d1101fb
commit a0ffbfce31
No known key found for this signature in database
GPG Key ID: 50E0D2423696F995
2 changed files with 2 additions and 2 deletions

View File

@ -74,7 +74,7 @@ phpbb.prepareSendStats = function () {
var $sendStatisticsSuccess = $('<input />', {
type: 'hidden',
name: 'send_statistics_response',
value: res
value: JSON.stringify(res)
});
$sendStatisticsSuccess.appendTo('p.submit-buttons');

View File

@ -90,7 +90,7 @@ class acp_help_phpbb
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')
{