Permalink
Browse files

Email bounce handling: fixing md5 validation bug

  • Loading branch information...
1 parent e03ec5c commit d7083e87371d620723970fe3951cd7a9f9e18d35 mjollnir_ committed Jun 13, 2005
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/moodlelib.php
View
@@ -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?

0 comments on commit d7083e8

Please sign in to comment.