mirror of
https://github.com/getgrav/grav.git
synced 2026-07-10 11:12:17 +02:00
fix for email validation
This commit is contained in:
@@ -1,3 +1,9 @@
|
||||
# v1.7.39
|
||||
## 01/02/2023
|
||||
|
||||
1. [](#bugfix)
|
||||
* Fixed an issue with `email` validation that was failing on UTF-8 characters. Following best practices and now only check for `@` and length.
|
||||
|
||||
# v1.7.38
|
||||
## 01/02/2023
|
||||
|
||||
@@ -7,7 +13,6 @@
|
||||
* Vendor library updates to latest versions
|
||||
* Updated `bin/composer.phar` to latest `2.4.4` version [#3627](https://github.com/getgrav/grav/issues/3627)
|
||||
1. [](#bugfix)
|
||||
|
||||
* Don't fail hard if pages recurse with same path
|
||||
* Github workflows security hardening [#3624](https://github.com/getgrav/grav/pull/3624)
|
||||
|
||||
|
||||
@@ -638,7 +638,7 @@ class Validation
|
||||
$values = !is_array($value) ? explode(',', preg_replace('/\s+/', '', $value)) : $value;
|
||||
|
||||
foreach ($values as $val) {
|
||||
if (!(self::typeText($val, $params, $field) && filter_var($val, FILTER_VALIDATE_EMAIL))) {
|
||||
if (!(self::typeText($val, $params, $field) && strpos($val, '@', 1))) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user