Intervention / validation

Missing Laravel Validation Rules
https://validation.intervention.io
MIT License
590 stars 67 forks source link

iso_date can cause 500 error upon invalid input #19

Closed Rogierownage closed 4 years ago

Rogierownage commented 6 years ago

ErrorException(code: 0): preg_match() expects parameter 2 to be string, array given at vendor/intervention/validation/src/Intervention/Validation/Validator.php:322

If the data supplied is an array instead of a string, you get this error. Ideally, it should return false instead, if the data is not a string.

olivervogel commented 4 years ago

Fixed in 1.4.1.