From 4f8a835b13966d08830ede7d7594d19c5e6f037e Mon Sep 17 00:00:00 2001 From: Thomas Jakobi Date: Mon, 25 Mar 2024 16:29:53 +0100 Subject: [PATCH] Trim context setting keys on creation (#16500) ## What does it do? 3.x port of #16498 --- core/src/Revolution/Processors/Context/Setting/Create.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/Revolution/Processors/Context/Setting/Create.php b/core/src/Revolution/Processors/Context/Setting/Create.php index 6ba0012917b..7a6d74e8663 100644 --- a/core/src/Revolution/Processors/Context/Setting/Create.php +++ b/core/src/Revolution/Processors/Context/Setting/Create.php @@ -67,7 +67,7 @@ public function beforeSave() { $this->object->set('context_key', $this->context->key); - $key = $this->getProperty('key'); + $key = trim($this->getProperty('key', '')); $this->object->set('key', $key); // Make sure the key's there and valid