Skip to content
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

Space at the end of route in config causes method not allowed #371

Closed
DaliborTrampota opened this issue Dec 22, 2023 · 1 comment
Closed

Comments

@DaliborTrampota
Copy link

DaliborTrampota commented Dec 22, 2023

This fricking bug cost me my sanity
in routes.ini (or any config with routes) suppose we have this route

POST /admin/backup/run/@action = \controllers\api\Backup->run_action

if there is a trailing space, it throws method not allowed. why is it not being trimmed for god's sake?

ikkez pushed a commit that referenced this issue Sep 22, 2024
@ikkez
Copy link
Member

ikkez commented Sep 22, 2024

thanks. Never noticed this one, as PhpStorm already trims whitespace in .ini files automatically.
fixed now.

@ikkez ikkez closed this as completed Sep 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants