mirror of
https://github.com/codeigniter4/CodeIgniter4.git
synced 2025-02-20 11:44:28 +08:00
docs: add sub section "Adding Permitted Characters"
This commit is contained in:
parent
03ec3ff566
commit
ecc3a1e175
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user