Revision: 1789
Author: andreassolberg
Date: Fri Sep 25 02:54:23 2009
Log: Fix for random byte generation in MIME email messages
http://code.google.com/p/simplesamlphp/source/detail?r=1789
Modified:
/trunk/lib/SimpleSAML/XHTML/EMail.php
=======================================
--- /trunk/lib/SimpleSAML/XHTML/EMail.php Fri Nov 14 13:30:24 2008
+++ /trunk/lib/SimpleSAML/XHTML/EMail.php Fri Sep 25 02:54:23 2009
@@ -66,7 +66,7 @@
if ($this->subject == NULL) throw new Exception('EMail field
[subject]
is required and not set.');
if ($this->body == NULL) throw new Exception('EMail field
[body] is
required and not set.');
- $random_hash = substr(0, 16, md5(date('r', time())));
+ $random_hash =
SimpleSAML_Utilities::stringToHex(SimpleSAML_Utilities::generateRandomBytes(16));
if (isset($this->from))
$this->headers[]= 'From: ' . $this->from;
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"simpleSAMLphp commits" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/simplesamlphp-commits?hl=en
-~----------~----~----~----~------~----~------~--~---