Skip to content

Commit ecc3a1e

Browse files
committed
docs: add sub section "Adding Permitted Characters"
1 parent 03ec3ff commit ecc3a1e

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

user_guide_src/source/general/urls.rst

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,13 +84,22 @@ data can be passed to your application. URIs may only contain the following:
8484
- Dash: ``-``
8585
- Space: `` ``
8686

87-
This setting can be changed by ``Config\App::$permittedURIChars``.
88-
8987
.. note::
9088
This check is performed by the ``Router``. The Router takes the URL-encoded
9189
value held by the ``SiteURI`` class, decodes it, and then checks that it
9290
does not contain not permitted strings.
9391

92+
Adding Permitted Characters
93+
---------------------------
94+
95+
The permitted characters can be changed by ``Config\App::$permittedURIChars``.
96+
97+
If you want to use Unicode for URI paths, modify it to allow the characters to
98+
be used. For example, if you want to use Bengali, you will need to set the
99+
following value in **app/Config/App.php**::
100+
101+
public string $permittedURIChars = 'a-z 0-9~%.:_\-\x{0980}-\x{09ff}';
102+
94103
.. _urls-remove-index-php:
95104

96105
Removing the index.php file

0 commit comments

Comments
 (0)