Issue Bug Closed

#91167Hosteurope database name not valid

Tobias Musholt 04/22/20, 10:59 updated 05/12/20, 13:08

Description

Hosteurope database name are generated with hyphen (-) and are not valid. Please add the hyphen into the regular expression.

typo3_src-10.4.0/typo3/sysext/install/Classes/SystemEnvironment/DatabaseCheck/Platform/AbstractPlatform.php – Zeile 67:

old/wrong:
return strlen($databaseName) <= static::SCHEMA_NAME_MAX_LENGTH && preg_match(‘/^[a-zA-Z0-9\$_]*$/’, $databaseName);

new/currenty:
return strlen($databaseName) <= static::SCHEMA_NAME_MAX_LENGTH && preg_match(‘/^[a-zA-Z0-9\$-_]*$/’, $databaseName);

Reviews 1