From cdabadedf05a23186362a4f7fc338cb54f647e5e Mon Sep 17 00:00:00 2001 From: Roman Klein Date: Mon, 11 Jan 2021 20:27:51 +0100 Subject: [PATCH 1/3] Release 2.0.5 - Fix error with ampersands in website- and section-names [#42](https://github.com/symphonists/reflectionfield/issues/42) --- extension.driver.php | 4 ++-- extension.meta.xml | 3 +++ readme.md | 56 ++++++++++++++++++++++---------------------- 3 files changed, 33 insertions(+), 30 deletions(-) diff --git a/extension.driver.php b/extension.driver.php index 24bfe9b..b781293 100755 --- a/extension.driver.php +++ b/extension.driver.php @@ -144,7 +144,7 @@ private function buildParams() 'this-month' => $date->format('m'), 'this-day' => $date->format('d'), 'timezone' => $date->format('P'), - 'website-name' => Symphony::Configuration()->get('sitename', 'general'), + 'website-name' => General::sanitize(Symphony::Configuration()->get('sitename', 'general')), 'root' => URL, 'workspace' => URL . '/workspace', 'http-host' => HTTP_HOST, @@ -168,7 +168,7 @@ private function buildEntry($handle = 'reflection-field', $entry) // Section context $section_data = SectionManager::fetch($entry->get('section_id')); - $section = new XMLElement('section', $section_data->get('name')); + $section = new XMLElement('section', General::sanitize($section_data->get('name'))); $section->setAttribute('id', $entry->get('section_id')); $section->setAttribute('handle', $section_data->get('handle')); diff --git a/extension.meta.xml b/extension.meta.xml index 98f4b0d..ba1cc5c 100644 --- a/extension.meta.xml +++ b/extension.meta.xml @@ -18,6 +18,9 @@ + + - Fix error with ampersands in website- and section-names [#42](https://github.com/symphonists/reflectionfield/issues/42) + - Fix XPath-expressions [#35](https://github.com/symphonists/reflectionfield/issues/35) diff --git a/readme.md b/readme.md index 269ede6..3d8d767 100755 --- a/readme.md +++ b/readme.md @@ -9,34 +9,34 @@ When saving an entry Reflection field creates an internal `data` structure simil ```xml - - 2016-08-02 - 12:34 - 2016 - 08 - 02 - +02:00 - Example Website - https://example.com - https://example.com/workspace - example.com - 5242880 - 2.7.0 - - -
- - - - - - - - - - - -
+ + 2016-08-02 + 12:34 + 2016 + 08 + 02 + +02:00 + Example Website + https://example.com + https://example.com/workspace + example.com + 5242880 + 2.7.0 + + +
+ + + + + + + + + + + +
``` From 01b27867d60dfbffa8451e4a291878143a523921 Mon Sep 17 00:00:00 2001 From: Roman Klein Date: Mon, 11 Jan 2021 20:34:53 +0100 Subject: [PATCH 2/3] Update readme --- readme.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/readme.md b/readme.md index 3d8d767..6496acb 100755 --- a/readme.md +++ b/readme.md @@ -10,18 +10,18 @@ When saving an entry Reflection field creates an internal `data` structure simil ```xml - 2016-08-02 - 12:34 - 2016 - 08 - 02 + 2021-01-11 + 20:34 + 2021 + 01 + 12 +02:00 Example Website https://example.com https://example.com/workspace example.com 5242880 - 2.7.0 + 2.7.10
From 125b7ab7c795a5dab6364b59bad3a69001626265 Mon Sep 17 00:00:00 2001 From: Roman Klein Date: Mon, 11 Jan 2021 20:35:40 +0100 Subject: [PATCH 3/3] Update read --- readme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/readme.md b/readme.md index 6496acb..364dd24 100755 --- a/readme.md +++ b/readme.md @@ -10,7 +10,7 @@ When saving an entry Reflection field creates an internal `data` structure simil ```xml - 2021-01-11 + 2021-01-12 20:34 2021 01