mirror of
https://github.com/directus/directus.git
synced 2026-04-25 03:00:53 -04:00
Prevent hyphens in db-safe inputs
This commit is contained in:
@@ -162,7 +162,7 @@ export default defineComponent({
|
||||
}
|
||||
|
||||
if (props.dbSafe === true) {
|
||||
const dbSafeCharacters = 'abcdefghijklmnopqrstuvwxyz01234567890-_~ '.split('');
|
||||
const dbSafeCharacters = 'abcdefghijklmnopqrstuvwxyz01234567890_ '.split('');
|
||||
|
||||
const isAllowed = dbSafeCharacters.includes(key) || systemKeys.includes(key);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user