1
0
Fork 0

Fix validation of license field

pull/7088/head
Jordi Boggiano 2018-02-05 10:17:52 +01:00
parent 1f3c52d3af
commit 0fc6fb56a0
1 changed files with 0 additions and 6 deletions

View File

@ -104,12 +104,6 @@ class ValidatingArrayLoader implements LoaderInterface
}
if (isset($this->config['license'])) {
if (is_string($this->config['license'])) {
$this->validateRegex('license', '[A-Za-z0-9+. ()-]+');
} else {
$this->validateFlatArray('license', '[A-Za-z0-9+. ()-]+');
}
if (is_array($this->config['license']) || is_string($this->config['license'])) {
$licenses = (array) $this->config['license'];