diff --git a/ConfirmAccount/business/AccountRequestSubmission.php b/ConfirmAccount/business/AccountRequestSubmission.php index eac6eb1..e0452cd 100644 --- a/ConfirmAccount/business/AccountRequestSubmission.php +++ b/ConfirmAccount/business/AccountRequestSubmission.php @@ -112,8 +112,11 @@ class AccountRequestSubmission { return; } $success = false; - preg_match_all('%
.*?.*?
(.*?)
%ms', $data, $matches); - foreach ($matches[2] as $key => $val) { + 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)) {