Merge pull request #46734 from nextcloud/backport/46731/stable28

[stable28] fix(files): ensure forbiddenCharacters is an array
This commit is contained in:
Ferdinand Thiessen 2024-07-25 11:36:35 +02:00 committed by GitHub
commit 4a4f90c075
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 8 additions and 8 deletions

View file

@ -71,7 +71,7 @@ import { useNavigation } from '../../composables/useNavigation'
import { useRenamingStore } from '../../store/renaming.ts'
import logger from '../../logger.js'
const forbiddenCharacters = loadState('files', 'forbiddenCharacters', '') as string
const forbiddenCharacters = loadState<string>('files', 'forbiddenCharacters', '').split('')
export default Vue.extend({
name: 'FileEntryName',

View file

@ -61,7 +61,7 @@ interface ICanFocus {
focus: () => void
}
const forbiddenCharacters = loadState<string[]>('files', 'forbiddenCharacters', [])
const forbiddenCharacters = loadState<string>('files', 'forbiddenCharacters', '').split('')
export default defineComponent({
name: 'NewNodeDialog',

4
dist/files-init.js vendored

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

4
dist/files-main.js vendored

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long