diff options
author | Christopher Ng <chrng8@gmail.com> | 2024-07-30 18:19:55 -0700 |
---|---|---|
committer | Christopher Ng <chrng8@gmail.com> | 2024-08-01 09:14:44 -0700 |
commit | b859260423305620a5b2b15700cae417cc58affa (patch) | |
tree | 3607ffe59fc8680c93593163d906727dbc61a8fa /lib/public/AppFramework/Http | |
parent | 572361f4987fff88c97302701e0f59414c24f6e8 (diff) | |
download | nextcloud-server-b859260423305620a5b2b15700cae417cc58affa.tar.gz nextcloud-server-b859260423305620a5b2b15700cae417cc58affa.zip |
feat: Increase max depth of encoded json
Signed-off-by: Christopher Ng <chrng8@gmail.com>
Diffstat (limited to 'lib/public/AppFramework/Http')
-rw-r--r-- | lib/public/AppFramework/Http/JSONResponse.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/public/AppFramework/Http/JSONResponse.php b/lib/public/AppFramework/Http/JSONResponse.php index 1614cb8ce01..4890d483cba 100644 --- a/lib/public/AppFramework/Http/JSONResponse.php +++ b/lib/public/AppFramework/Http/JSONResponse.php @@ -47,7 +47,7 @@ class JSONResponse extends Response { * @throws \Exception If data could not get encoded */ public function render() { - return json_encode($this->data, JSON_HEX_TAG | JSON_THROW_ON_ERROR); + return json_encode($this->data, JSON_HEX_TAG | JSON_THROW_ON_ERROR, 2048); } /** |