From 4be5d0a51377a7bea0814c39e2eb55ad13214f5d Mon Sep 17 00:00:00 2001 From: Will Browning Date: Thu, 14 Aug 2025 16:46:50 +0100 Subject: [PATCH] Added ascii validation to emails --- .github/FUNDING.yml | 2 +- app/Http/Controllers/Auth/RegisterController.php | 2 ++ app/Http/Requests/StoreRecipientRequest.php | 3 ++- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml index ace0055..efb5fc6 100644 --- a/.github/FUNDING.yml +++ b/.github/FUNDING.yml @@ -1,3 +1,3 @@ github: willbrowningme open_collective: anonaddy -custom: https://anonaddy.com/donate \ No newline at end of file +custom: https://addy.io/donate \ No newline at end of file diff --git a/app/Http/Controllers/Auth/RegisterController.php b/app/Http/Controllers/Auth/RegisterController.php index ccd7aa7..c03f06d 100644 --- a/app/Http/Controllers/Auth/RegisterController.php +++ b/app/Http/Controllers/Auth/RegisterController.php @@ -85,6 +85,8 @@ class RegisterController extends Controller 'email' => [ 'bail', 'required', + 'string', + 'ascii', 'email:rfc,dns', 'max:254', 'confirmed', diff --git a/app/Http/Requests/StoreRecipientRequest.php b/app/Http/Requests/StoreRecipientRequest.php index cc09ea6..22ed8be 100644 --- a/app/Http/Requests/StoreRecipientRequest.php +++ b/app/Http/Requests/StoreRecipientRequest.php @@ -30,8 +30,9 @@ class StoreRecipientRequest extends FormRequest 'bail', 'required', 'string', + 'ascii', + 'email:rfc,dns', 'max:254', - 'email:rfc', new UniqueRecipient, new NotLocalRecipient, ],