From 6d719cfd4748e6e48e17fe4de8ba25e3f4504148 Mon Sep 17 00:00:00 2001 From: Jacob G Date: Mon, 11 Jan 2016 20:06:53 -0500 Subject: [PATCH] fixed regex detection of scratch team members with asterisk in username --- ConfirmAccount/business/AccountRequestSubmission.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ConfirmAccount/business/AccountRequestSubmission.php b/ConfirmAccount/business/AccountRequestSubmission.php index e0452cd..690c19a 100644 --- a/ConfirmAccount/business/AccountRequestSubmission.php +++ b/ConfirmAccount/business/AccountRequestSubmission.php @@ -112,14 +112,14 @@ class AccountRequestSubmission { return; } $success = false; - preg_match_all('%
.*?
.*?\s+
(.*?)
%ms', $data, $matches); + preg_match_all('%
.*?
.*?\s+
(.*?)
%ms', $data, $matches); unset($matches[2]); unset($matches[3]); unset($matches[4]); foreach ($matches[5] as $key => $val) { $user = $matches[1][$key]; $comment = trim($val); - if (strtolower($user) == strtolower(htmlspecialchars($this->userName)) && $this->stringContainsArray($comment, $codes)) { + if ((strtolower($user) == strtolower(htmlspecialchars($this->userName)) && $this->stringContainsArray($comment, $codes)) { $success = true; break; }