We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 2442448 + 1019d25 commit df685b2Copy full SHA for df685b2
CRM/Admin/Form/Extensions.php
@@ -45,7 +45,7 @@ public function preProcess() {
45
$this->_key = CRM_Utils_Request::retrieve('key', 'String',
46
$this, FALSE, 0
47
);
48
- if (!preg_match('/[0-9a-zA-Z._-]+/', $this->_key)) {
+ if (!preg_match('/^[0-9a-zA-Z._-]+$/', $this->_key)) {
49
throw new CRM_Core_Exception('Extension Key does not match expected standard');
50
}
51
$session = CRM_Core_Session::singleton();
0 commit comments