docs: add sub section "Adding Permitted Characters"

This commit is contained in:
kenjis 2024-03-24 10:38:41 +09:00
parent 03ec3ff566
commit ecc3a1e175
No known key found for this signature in database
GPG Key ID: BD254878922AF198

View File

@ -84,13 +84,22 @@ data can be passed to your application. URIs may only contain the following:
- Dash: ``-``
- Space: `` ``
This setting can be changed by ``Config\App::$permittedURIChars``.
.. note::
This check is performed by the ``Router``. The Router takes the URL-encoded
value held by the ``SiteURI`` class, decodes it, and then checks that it
does not contain not permitted strings.
Adding Permitted Characters
---------------------------
The permitted characters can be changed by ``Config\App::$permittedURIChars``.
If you want to use Unicode for URI paths, modify it to allow the characters to
be used. For example, if you want to use Bengali, you will need to set the
following value in **app/Config/App.php**::
public string $permittedURIChars = 'a-z 0-9~%.:_\-\x{0980}-\x{09ff}';
.. _urls-remove-index-php:
Removing the index.php file