mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-30 05:44:51 +02:00
Validate rule forward email address
This commit is contained in:
@@ -539,6 +539,8 @@ public class EntityRule {
|
||||
String to = jargs.optString("to");
|
||||
if (TextUtils.isEmpty(to))
|
||||
throw new IllegalArgumentException(context.getString(R.string.title_rule_answer_missing));
|
||||
else if (!Helper.EMAIL_ADDRESS.matcher(to).matches())
|
||||
throw new IllegalArgumentException(context.getString(R.string.title_email_invalid, to));
|
||||
} else {
|
||||
EntityAnswer answer = db.answer().getAnswer(aid);
|
||||
if (answer == null)
|
||||
|
||||
Reference in New Issue
Block a user