Fixes json escaping

main
Yasen Pramatarov 2024-10-23 13:22:55 +03:00
parent 9b45d5df9e
commit 36f287e169
1 changed files with 2 additions and 1 deletions

View File

@ -245,7 +245,8 @@ class Agent {
}
// Cache the result and the timestamp if the response is successful
$_SESSION[$agent_cache_name] = $response;
// We decode it so that it's pure JSON and not escaped
$_SESSION[$agent_cache_name] = json_decode($response, true);
$_SESSION[$agent_cache_time] = time();
return $response;