## Overview Previously we only checked that the suffix of the database is matching one of the predefined system databases. We really should check the prefix against DBNAME_REGEXP to prevent creation of illegally named databases.
## Testing recommendations ``` make eunit apps=couch tests=validate_dbname_fail_test_ ``` ## Related Issues or Pull Requests This fixes #1644 ## Checklist - [x] Code is written and works correctly; - [x] Changes are covered by tests; - [ ] Documentation reflects the changes; [ Full content available at: https://github.com/apache/couchdb/pull/1647 ] This message was relayed via gitbox.apache.org for devnull@infra.apache.org