Commit 5600cdc7 authored by Bertrand Gauthier's avatar Bertrand Gauthier
Browse files

CallService : échappement des balises HTML dans l'affichage d'une erreur de parsing JSON

parent e464d048
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -174,7 +174,7 @@ class CallService
        $json = json_decode($body);
        if ($json === null) {
            // NULL is returned if the json cannot be decoded or if the encoded data is deeper than the recursion limit.
            throw CallException::invalidJSONResponse($uri, (string)$body);
            throw CallException::invalidJSONResponse($uri, htmlentities((string)$body));
        }

        return $json;