diff --git a/src/Donations/Endpoints/Endpoint.php b/src/Donations/Endpoints/Endpoint.php index 826cbdee34..d64d5a5b44 100644 --- a/src/Donations/Endpoints/Endpoint.php +++ b/src/Donations/Endpoints/Endpoint.php @@ -35,6 +35,7 @@ public function validateInt($value) public function validateDate($param, $request, $key) { // Check that date is valid, and formatted YYYY-MM-DD + if (substr_count($param, '-') !== 2) return false; list($year, $month, $day) = explode('-', $param); $valid = checkdate($month, $day, $year);