Skip to content

Commit

Permalink
Merge pull request #46734 from nextcloud/backport/46731/stable28
Browse files Browse the repository at this point in the history
[stable28] fix(files): ensure forbiddenCharacters is an array
  • Loading branch information
susnux authored Jul 25, 2024
2 parents 12a672f + 259c80f commit 4a4f90c
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion apps/files/src/components/FileEntry/FileEntryName.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
2 changes: 1 addition & 1 deletion apps/files/src/components/NewNodeDialog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
4 changes: 2 additions & 2 deletions dist/files-init.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/files-init.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/files-main.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/files-main.js.map

Large diffs are not rendered by default.

0 comments on commit 4a4f90c

Please sign in to comment.