akaunting / laravel-firewall

Web Application Firewall (WAF) package for Laravel
https://akaunting.com
MIT License
942 stars 106 forks source link

limit referrer max size #56

Closed 2000calories closed 1 year ago

2000calories commented 2 years ago

I saw many of the following errors in the logs due to too long referrer. production.ERROR: SQLSTATE[22001]: String data, right truncated: 1406 Data too long for column 'referrer' at row 1 (SQL: insert into `firewall_logs` (`ip`, `level`, `middleware`, `user_id`, `url`, `referrer`, `request`, `updated_at`, `created_at`)