#212 - 06/03/2026 02:51:53
Standardize filter_INT and add error handling
Replace custom integer sanitizers with a single consistent implementation (return max(0, (int)$input)) to simplify and standardize input handling. Add minor style fixes (consistent function terminators) and a premature exit in contato-recebido.php. Harden complex DB logic by wrapping queries in try/catch, returning proper HTTP status codes (404/500), closing prepared statements, and improving error handling in municipal page. Overall: input-sanitization normalization, small cleanup, and safer DB error handling.