diff --git a/CHANGELOG.md b/CHANGELOG.md index 6f0bd1044..8ebef7cd3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,7 @@ * Improved Zip extraction error codes [#1922](https://github.com/getgrav/grav/issues/1922) 1. [](#bugfix) * Fix an issue with Markdown Video and Audio that broke after Parsedown 1.7.0 Security updates [#1924](https://github.com/getgrav/grav/issues/1924) + * Fixx for case-sensitive page metadata [admin#1370](https://github.com/getgrav/grav-plugin-admin/issues/1370) # v1.4.1 diff --git a/system/src/Grav/Common/Page/Page.php b/system/src/Grav/Common/Page/Page.php index 517ac44cf..a4027a514 100644 --- a/system/src/Grav/Common/Page/Page.php +++ b/system/src/Grav/Common/Page/Page.php @@ -1499,6 +1499,8 @@ class Page // Build an array of meta objects.. foreach ((array)$metadata as $key => $value) { + // Lowercase the key + $key = strtolower($key); // If this is a property type metadata: "og", "twitter", "facebook" etc // Backward compatibility for nested arrays in metas if (is_array($value)) {