From 4da38adfe9df374d22d579355ce208dfa188c82c Mon Sep 17 00:00:00 2001 From: brettp Date: Mon, 1 Feb 2010 06:54:30 +0000 Subject: Refs #1290: Changed email addresses are checked in action:email/save git-svn-id: http://code.elgg.org/elgg/trunk@3885 36083f99-b078-4883-b0ff-0f9b5a30f544 --- actions/email/save.php | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'actions/email/save.php') diff --git a/actions/email/save.php b/actions/email/save.php index 006445b99..7493538f9 100644 --- a/actions/email/save.php +++ b/actions/email/save.php @@ -22,6 +22,11 @@ if (!$user_id) { $user = get_entity($user_id); } +if (!is_email_address($email)) { + register_error(elgg_echo('email:save:fail')); + forward($_SERVER['HTTP_REFERER']); +} + if ($user) { if (strcmp($email,$user->email)!=0) { if (!get_user_by_email($email)) { -- cgit v1.2.3