Skip to content

A free, self-hostable news aggregator…

Fix JSON Dot direct array (#6476)

Alexandre Alapetitec0e87f6a5c9b
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;
}