X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=modules%2Fmarketing.php;h=ac5cff5fbb35a3a28f7a6e300197bb2609b4b37b;hb=242feff4237971e191f496517f42c99d90553685;hp=d1d8372f5d7285e7130ee16c90a96e557ad3df12;hpb=bfe9f4c752e8889ab5a269bddd27ea43b31d567e;p=platal.git diff --git a/modules/marketing.php b/modules/marketing.php index d1d8372..ac5cff5 100644 --- a/modules/marketing.php +++ b/modules/marketing.php @@ -237,7 +237,7 @@ class MarketingModule extends PLModule if (Post::has('mail')) { $email = valide_email(Post::v('mail')); } - if (Post::has('valide') && isvalid_email_redirection($email)) { + if (Post::has('valide') && isvalid_email_redirection($email, $user)) { S::assert_xsrf_token(); // security stuff @@ -303,7 +303,7 @@ class MarketingModule extends PLModule $email = trim(Post::v('mail')); require_once 'emails.inc.php'; - if (!isvalid_email_redirection($email)) { + if (!isvalid_email_redirection($email, $user)) { $page->trigError('Email invalide !'); } else { // On cherche les marketings précédents sur cette adresse