We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hello,
I have this route:
Flight::route('/test',function() { echo 'test'; }); Flight::route('*',function() { echo 'all'; });
if i try to make a request like this:
curl https://test.local/test?key1=%0A% all
Flight can't see router "/test"
If i try like this:
curl https://test.local/test?key1=%0A test
everything works fine
The text was updated successfully, but these errors were encountered:
I meet this problem too, it caused by this line of code
https://github.com/mikecao/flight/blob/b3120f8db2ae3b358c1c7a412a92d7aa008a57b4/flight/net/Router.php#L81
I don't know why query string included here, may be it's a bug or just a design.
but you can solve it by change to follow:
$path = parse_url($request->url,PHP_URL_PATH); $url_decoded = urldecode( $path );
Sorry, something went wrong.
I believe I actually fixed this with this commit. c7a143d
No branches or pull requests
Hello,
I have this route:
if i try to make a request like this:
curl https://test.local/test?key1=%0A% all
Flight can't see router "/test"
If i try like this:
everything works fine
The text was updated successfully, but these errors were encountered: