We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 01c63cf commit b196738Copy full SHA for b196738
includes/Core/Util/Helper.php
@@ -235,6 +235,10 @@ public static function isUserLoggedIn()
235
236
public static function isJson($string)
237
{
238
+ if (!\is_string($string) || trim($string) === '') {
239
+ return false;
240
+ }
241
+
242
json_decode($string);
243
244
return json_last_error() === JSON_ERROR_NONE;
0 commit comments