diff options
| author | 2024-05-22 23:21:16 +0200 | |
|---|---|---|
| committer | 2024-05-22 23:21:16 +0200 | |
| commit | c0e87f6a5c9b07cdde82e4c1876e19b8bf98d543 (patch) | |
| tree | b53e22557210f87e381bba4748dcc9e3655d6dc5 /app/Utils | |
| parent | e5118d83e4ff5746d2f19e958bf6d226f0a97aa2 (diff) | |
Fix JSON Dot direct array (#6476)
* Fix JSON Dot direct array
Allow consuming a JSON array in which entries are top level
https://github.com/FreshRSS/FreshRSS/issues/6474
* Allow $ as root
Diffstat (limited to 'app/Utils')
| -rw-r--r-- | app/Utils/dotNotationUtil.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/Utils/dotNotationUtil.php b/app/Utils/dotNotationUtil.php index a4a8ef471..a7fb066d1 100644 --- a/app/Utils/dotNotationUtil.php +++ b/app/Utils/dotNotationUtil.php @@ -21,7 +21,7 @@ final class FreshRSS_dotNotation_Util return static::value($default); } /** @var \ArrayAccess<string,mixed>|array<string,mixed> $array */ - if ($key === null || $key === '') { + if (in_array($key, [null, '', '.', '$'], true)) { return $array; } |
