Closed sirnails closed 5 months ago
feat: Enhance security by sanitizing and validating GET and POST parameters
SanitizationHelper
and InputHelper
to sanitize inputs across the application.$_POST
data in UserController
and QuoteController
methods to prevent XSS and other injection attacks.$_GET
parameters in index.php
and QuoteController
to ensure valid and safe input.This commit enhances the overall security by ensuring all user inputs are properly sanitized and validated before being used in the application logic.
need to add input sanitiation
e.g. sanitizeInput($data) { return htmlspecialchars(strip_tags(trim($data)), ENT_QUOTES, 'UTF-8');