From 6dc425da8743d68a10edc778dc36593e9b754ed8 Mon Sep 17 00:00:00 2001 From: Struan Donald Date: Mon, 29 Jul 2019 17:30:56 +0100 Subject: prevent including email address in report title If autofill on Chrome is turned on and has saved the user's login it can autofill the user's email address in the report title, so add validation to make sure the title does not look like an email. Fixes #2570 --- web/js/validation_rules.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'web/js/validation_rules.js') diff --git a/web/js/validation_rules.js b/web/js/validation_rules.js index 3e7b010f2..9044def73 100644 --- a/web/js/validation_rules.js +++ b/web/js/validation_rules.js @@ -1,5 +1,5 @@ core_validation_rules = { - title: { required: true }, + title: { required: true, notEmail: true }, detail: { required: true }, update: { required: true }, password_register: { -- cgit v1.2.3