Skip to content

Commit 86acdbe

Browse files
author
gitlabci
committed
Merge branch '2023.11' into 2024.11
2 parents 162fd90 + b22eff6 commit 86acdbe

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tine20/Tinebase/Server/Json.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,9 @@ public function handle(\Laminas\Http\Request $request = null, $body = null)
194194
try {
195195
$output = $isBatchedRequest ? '['. implode(',', $response) .']' : $response[0];
196196
$output = (string) $output;
197+
if (empty($output)) {
198+
throw new Zend_Json_Exception('json encoding failed - bad chars?');
199+
}
197200
} catch (Throwable $e) {
198201
if (Tinebase_Core::isLogLevel(Zend_Log::NOTICE)) {
199202
Tinebase_Core::getLogger()->notice(__METHOD__ . '::' . __LINE__

0 commit comments

Comments
 (0)