Skip to content

Commit 56e17c3

Browse files
authored
Merge pull request #11995 from nextcloud/filename-validation-changes
Add documentation for filename validation options
2 parents 3cf469c + 3bb11b0 commit 56e17c3

2 files changed

Lines changed: 31 additions & 10 deletions

File tree

admin_manual/release_notes/upgrade_to_30.rst

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,13 @@ System requirements
77

88
* PHP 8.1 is now deprecated but still supported.
99
* PHP 8.0 is no longer supported.
10-
* PostgreSQL 9.4 is no longer supported.
10+
* PostgreSQL 9.4 is no longer supported.
11+
12+
Nextcloud configuration
13+
-----------------------
14+
15+
Changes to the available options in ``config.php``.
16+
17+
* The option ``blacklisted_files`` is now deprecated and replaced with ``forbidden_filenames``
18+
* The option ``forbidden_chars`` is now deprecated and replaced with ``forbidden_filename_characters``
19+
* The option ``forbidden_filename_extensions`` was added to allow blocking extensions from being used on filenames

developer_manual/app_publishing_maintenance/app_upgrade_guide/upgrade_to_30.rst

Lines changed: 21 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,16 @@ Upgrade to Nextcloud 30
55
General
66
-------
77

8+
Capabilities
9+
------------
10+
11+
``files``
12+
^^^^^^^^^
13+
14+
- ``blacklist_files_regex`` is deprecated now use ``forbidden_filenames`` instead
15+
- ``forbidden_filename_characters`` was added to provide a list of characters not allowed within filenames
16+
- ``forbidden_filename_extensions`` was added to provide a list of extensions (suffixes) not allwed for filenames
17+
818
Front-end changes
919
-----------------
1020

@@ -30,18 +40,20 @@ Removed globals
3040
Deprecated APIs
3141
^^^^^^^^^^^^^^^
3242

33-
* ``OC.dialogs.fileexists`` was already deprecated in Nextcloud 29, but is now also marked as such.
43+
- ``OC.config.blacklist_files_regex`` is deprecated now, use the ``files`` capabilities instead
44+
- ``OC.config.forbidden_filename_characters`` is deprecated now, use the ``files`` capabilities instead
45+
- ``OC.dialogs.fileexists`` was already deprecated in Nextcloud 29, but is now also marked as such.
3446
Use ``openConflictPicker`` from `@nextcloud/upload <https://nextcloud-libraries.github.io/nextcloud-upload/functions/openConflictPicker.html>`_ instead.
35-
* Most ``OC.dialogs`` API is now deprecated and will be removed in the future. For generic dialogs use the ``DialogBuilder`` from the :ref:`js-library_nextcloud-dialogs`.
47+
- Most ``OC.dialogs`` API is now deprecated and will be removed in the future. For generic dialogs use the ``DialogBuilder`` from the :ref:`js-library_nextcloud-dialogs`.
3648
A list of the now deprecated methods:
3749

38-
* ``OC.dialogs.alert``
39-
* ``OC.dialogs.info``
40-
* ``OC.dialogs.confirm``
41-
* ``OC.dialogs.confirmDestructive``
42-
* ``OC.dialogs.confirmHtml``
43-
* ``OC.dialogs.prompt``
44-
* ``OC.dialogs.message``
50+
- ``OC.dialogs.alert``
51+
- ``OC.dialogs.info``
52+
- ``OC.dialogs.confirm``
53+
- ``OC.dialogs.confirmDestructive``
54+
- ``OC.dialogs.confirmHtml``
55+
- ``OC.dialogs.prompt``
56+
- ``OC.dialogs.message``
4557

4658
Back-end changes
4759
----------------

0 commit comments

Comments
 (0)