From 547af0d0d2fe70ae4a54ab238b970750c1463301 Mon Sep 17 00:00:00 2001 From: Dag Date: Sun, 1 Oct 2023 20:54:28 +0200 Subject: [PATCH] refactor: use Json::encode instead of json_encode (#3724) --- lib/contents.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/contents.php b/lib/contents.php index 27f0af31..cfb9f36a 100644 --- a/lib/contents.php +++ b/lib/contents.php @@ -54,7 +54,7 @@ function getContents( $requestBodyHash = null; if (isset($curlOptions[CURLOPT_POSTFIELDS])) { - $requestBodyHash = md5(json_encode($curlOptions[CURLOPT_POSTFIELDS])); + $requestBodyHash = md5(Json::encode($curlOptions[CURLOPT_POSTFIELDS], false)); } $cacheKey = implode('_', ['server', $url, $requestBodyHash]);