Skip to content

Commit

Permalink
Update Create.php
Browse files Browse the repository at this point in the history
Ensure reserved key comparison is not case sensitive
  • Loading branch information
smg6511 committed Feb 11, 2024
1 parent 3ec86e4 commit 4d2f0dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/Revolution/Processors/Context/Create.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public function beforeSave()
case empty($key):
$this->addFieldError('key', $this->modx->lexicon('context_err_ns_key'));
break;
case in_array($key, $this->classKey::RESERVED_KEYS):
case in_array(strtolower($key), $this->classKey::RESERVED_KEYS):
$this->addFieldError('key', $this->modx->lexicon('context_err_reserved'));
break;
case $this->alreadyExists($key):
Expand Down

0 comments on commit 4d2f0dc

Please sign in to comment.