Disallow dashes in database prefix ()

As a temporary fix it has been requested to disallow dashes in the database prefix. The installation process fails when the prefix does include a dash.

This commit is contained in:
Maarten Bicknese 2021-10-13 20:52:53 +02:00 committed by GitHub
parent 4146a4c578
commit a65488000c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -87,8 +87,8 @@ class DatabaseConfig implements Arrayable
}
if (! empty($this->prefix)) {
if (! preg_match('/^[\pL\pM\pN_-]+$/u', $this->prefix)) {
throw new ValidationFailed('The prefix may only contain characters, dashes and underscores.');
if (! preg_match('/^[\pL\pM\pN_]+$/u', $this->prefix)) {
throw new ValidationFailed('The prefix may only contain characters and underscores.');
}
if (strlen($this->prefix) > 10) {