From d75cbbdaba758da35b2f9212797a52ae685926b3 Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Mon, 22 Sep 2014 16:53:53 +0000 Subject: [PATCH] Use link search value to get email addresses as participants working again. --- calendar/inc/class.calendar_uiforms.inc.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/calendar/inc/class.calendar_uiforms.inc.php b/calendar/inc/class.calendar_uiforms.inc.php index fa52578611..6e86feb311 100644 --- a/calendar/inc/class.calendar_uiforms.inc.php +++ b/calendar/inc/class.calendar_uiforms.inc.php @@ -323,9 +323,8 @@ class calendar_uiforms extends calendar_ui case 'add': // email or rfc822 addresse (eg. "Ralf Becker ") in the search field - // ToDo: get eTemplate to return that field $matches = array(); - if (($email = $_POST['exec']['participants']['resource']['query']) && + if (($email = $content['participants']['resource']['search']) && (preg_match('/^(.*<)?([a-z0-9_.-]+@[a-z0-9_.-]{5,})>?$/i',$email,$matches))) { $status = calendar_so::combine_status('U',$content['participants']['quantity'],$content['participants']['role']);