OpenACalendar / OpenACalendar-Web-Core

OpenACalendar Web Site - Core System
Other
16 stars 11 forks source link

Check for integers which are to large #769

Open jarofgreen opened 6 years ago

jarofgreen commented 6 years ago

This is only a cosmetic thing for the user and our error logs, but if someone tries to load a event with a really big slug they should get a 404 and not a crash

CRITICAL: PDOException: SQLSTATE[22003]: Numeric value out of range: 7 ERROR: value "60162121121121216" is out of range for type integer (uncaught exception) at core/php/repositories/EventRepository.php line 309 {"exception":"[object] (PDOException(code: 22003): SQLSTATE[22003]: Numeric value out of range: 7 ERROR: value \"60162121121121216\" is out of range for type integer at core/php/repositories/EventRepository.php:309)"} []