forked from redhat-openstack/openstack-puppet-modules
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix regression in username validation
Commit cdd7132 added logic to catch invalid database usernames, but the regex it uses fails to match usernames with special characters that are properly quoted, causing errors with usernames that used to work in versions < 3.0.0. This fixes the regex so that if the username is quoted, anything is allowed between the quotes. From the docs (http://dev.mysql.com/doc/refman/5.5/en/identifiers.html): "Permitted characters in quoted identifiers include the full Unicode Basic Multilingual Plane (BMP), except U+0000"
- Loading branch information
Showing
2 changed files
with
11 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters