Open
Description
PHP Version
8.4
CodeIgniter4 Version
latest
CodeIgniter4 Installation Method
Composer (using codeigniter4/appstarter
)
Which operating systems have you tested for this bug?
macOS, Windows
Which server did you use?
apache
Database
No response
What happened?
checkDisallowedChars()
method should be protected or contain is_cli()
handling since CLI functions might use disallowed characters e.g. hidden UNC paths are marked with $
sign.
Steps to Reproduce
Create a function wich takes UNC path as argument and use hidden windows share UNC path as argument e.g. \\SHARE\thisishidden$
Expected Output
When using cli commands it is not mandatory to enforce disallowed characters policy or at least checkDisallowedChars()
should be marked as protected so it can be overridden without any need to tamper with CI system files.
Anything else?
No response