Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
minor #1386 Limit page size to prevent integer overflow (Tobion)
This PR was merged into the main branch. Discussion ---------- Limit page size to prevent integer overflow The $param is typed int. So if the routing param does not fit into an int, PHP will throw a TypeError. This in turn would trigger an 500 internal server error. So by requesting a too big page, e.g. `/de/blog/page/147483647147483647147483647`, one can trigger internal errors which should not be possible. I don't think there is an easy solution to this general problem that Symfony could automatically provide. So the best solution seems to be to limit the size of the routing placeholder. With this limit the page will always fit into an int even on a 32-bit platform. Commits ------- 8e14d5c Limit page size to prevent int overflow
- Loading branch information