aboutsummaryrefslogtreecommitdiff
path: root/actions/email/save.php
diff options
context:
space:
mode:
authorbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-02-01 06:54:30 +0000
committerbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-02-01 06:54:30 +0000
commit4da38adfe9df374d22d579355ce208dfa188c82c (patch)
tree44930389e3a5550ed2a8c04c8b1b1188a72affb3 /actions/email/save.php
parent641838cc511079d028aad12f47e0afbc22d08478 (diff)
downloadelgg-4da38adfe9df374d22d579355ce208dfa188c82c.tar.gz
elgg-4da38adfe9df374d22d579355ce208dfa188c82c.tar.bz2
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
Diffstat (limited to 'actions/email/save.php')
-rw-r--r--actions/email/save.php5
1 files changed, 5 insertions, 0 deletions
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)) {