From 8f1639c10b581e9bc4dc8ec721231a2ac2510fc7 Mon Sep 17 00:00:00 2001 From: Andy Miller Date: Sun, 18 Mar 2018 21:37:17 -0600 Subject: [PATCH] case for case sensitive metadata grav-admin-plugin#1370 --- CHANGELOG.md | 1 + system/src/Grav/Common/Page/Page.php | 2 ++ 2 files changed, 3 insertions(+) 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)) {