mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 01:01:41 +09:00
Debug 메시지가 json_encode() 오류로 인해 잘못된 포맷으로 응답을 생성하는 문제 해결
This commit is contained in:
parent
bb1699f577
commit
42919d1259
1 changed files with 5 additions and 1 deletions
|
|
@ -257,7 +257,11 @@ class DisplayHandler extends Handler
|
|||
unset($_SESSION['_rx_debug_previous']);
|
||||
if (preg_match('/^(.+)\}$/', $output, $matches))
|
||||
{
|
||||
$output = $matches[1] . ',"_rx_debug":' . json_encode($data) . '}';
|
||||
$data = json_encode($data);
|
||||
if (json_last_error() === JSON_ERROR_NONE)
|
||||
{
|
||||
$output = $matches[1] . ',"_rx_debug":' . $data . '}';
|
||||
}
|
||||
}
|
||||
break;
|
||||
default:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue