f3-factory / fatfree-core

Fat-Free Framework core library
GNU General Public License v3.0
206 stars 89 forks source link

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

Closed DaliborTrampota closed 2 months ago

DaliborTrampota commented 11 months ago

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 commented 2 months ago

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