projects
/
civicrm-core.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4b685cd
)
CRM-20906 - Fix regex for validating extension key
author
Sean Madsen
<sean@seanmadsen.com>
Tue, 19 Sep 2017 21:54:09 +0000
(15:54 -0600)
committer
Seamus Lee
<seamuslee001@gmail.com>
Tue, 19 Sep 2017 22:35:08 +0000
(08:35 +1000)
CRM/Admin/Form/Extensions.php
patch
|
blob
|
blame
|
history
diff --git
a/CRM/Admin/Form/Extensions.php
b/CRM/Admin/Form/Extensions.php
index 4b93cc02a0df23ab1c883f2b69da3e6f6c3eefd1..09e78f8ff2fc551c76e1536af8c0ccb3557265fe 100644
(file)
--- a/
CRM/Admin/Form/Extensions.php
+++ b/
CRM/Admin/Form/Extensions.php
@@
-45,7
+45,7
@@
class CRM_Admin_Form_Extensions extends CRM_Admin_Form {
$this->_key = CRM_Utils_Request::retrieve('key', 'String',
$this, FALSE, 0
);
- if (!preg_match('/
[0-9a-zA-Z._-]+
/', $this->_key)) {
+ if (!preg_match('/
^[0-9a-zA-Z._-]+$
/', $this->_key)) {
throw new CRM_Core_Exception('Extension Key does not match expected standard');
}
$session = CRM_Core_Session::singleton();