mysql database name with +
#9844
Labels
Bug
For errors / faults / flaws / inconsistencies etc.
Help wanted
Beginner friendly issues or issues where we'd highly appreciate community's help and involvement.
not-in-changelog
For issues or pull requests that should not be included in our release changelog on matomo.org.
Milestone
The database name I can use contains a
+
. During setup Piwik tells me that's an invalid database name.I don't follow the code perfectly, but it looks like it boils down to
https://github.com/piwik/piwik/blob/7f375924db9328f20a0b7cb1e41397f2309b60a7/plugins/Installation/FormDatabaseSetup.php#L63
and then
https://github.com/piwik/piwik/blob/7f375924db9328f20a0b7cb1e41397f2309b60a7/core/Filesystem.php#L54
I'm going to try the regular expression
(^[a-zA-Z0-9]+([a-zA-Z_0-9.-\\+]*))$
insteadThe text was updated successfully, but these errors were encountered: