Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Email bounce handling: fixing md5 validation bug

  • Loading branch information...
commit d7083e87371d620723970fe3951cd7a9f9e18d35 1 parent e03ec5c
mjollnir_ authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/moodlelib.php
View
2  lib/moodlelib.php
@@ -3364,7 +3364,7 @@ function moodle_process_email($modargs,$body) {
if ($user = get_record_select("user","id=$userid","id,email")) {
// check the half md5 of their email
$md5check = substr(md5($user->email),0,16);
- if ($md5check = substr($modargs, -16)) {
+ if ($md5check == substr($modargs, -16)) {
set_bounce_count($user);
}
// else maybe they've already changed it?
Please sign in to comment.
Something went wrong with that request. Please try again.