MDL-30698 message: changed message ID to be a hash
authorAndrew Davis <andrew@moodle.com>
Thu, 16 Feb 2012 10:08:16 +0000 (17:08 +0700)
committerAndrew Davis <andrew@moodle.com>
Fri, 17 Feb 2012 02:21:02 +0000 (09:21 +0700)
mod/forum/lib.php

index 5819b43..89859ef 100644 (file)
@@ -366,7 +366,7 @@ WHERE
 }
 
 function forum_get_email_message_id($postid, $usertoid, $hostname) {
 }
 
 function forum_get_email_message_id($postid, $usertoid, $hostname) {
-    return '<moodlepost'.$postid.'to'.$usertoid.'@'.$hostname.'>';
+    return '<'.hash('sha256',$postid.'to'.$usertoid.'@'.$hostname).'>';
 }
 
 /**
 }
 
 /**