atk4 / ui

Robust and easy to use PHP Framework for Web Apps
https://atk4-ui.readthedocs.io
MIT License
440 stars 105 forks source link

Always assert request URL path starts with '/' #2110

Closed mvorisek closed 1 year ago

mvorisek commented 1 year ago

normally, request is created from $_SERVER, $_GET, ... globals (or passed explicitly) and thus this PR should have no effect on developer

fixes TODO in App::url

App::$request should be readonly, thus checking in the App constructor should be enough