-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug: Commands cannot accept many paths #2148
Comments
Have you tried quoting the offending string? |
Yes, it still routes it:
|
Not a bug. Slashes need to be url-encoded, i.e. %2fusr%2ftemp%2fbin |
Maybe "bug" isn't the correct term, but it's definitely a broken expectation. If I'm sitting at a shell prompt and want to call a command with a file argument I type |
Agreed, HTML encoding shouldn't be needed here. |
@MGatner have you had any more chance to look into this? |
Describe the bug
Because CLI commands are actually routed their parameters go through some routing and filtering making it impossible to pass certain characters as a parameter. Of note that I ran into was trying to use a command that take a files path - the "/"s and "-"s cause it to be filtered and never arrives in
$params
.CodeIgniter 4 version
Latest develop branch
Affected module(s)
CLI Commands
Expected behavior, and steps to reproduce if appropriate
Create a simple commands that calls
var_dump($params)
inrun()
. Call it:php spark test:command /usr/bin/myfile.txt
Response is empty array.
Context
The text was updated successfully, but these errors were encountered: