]> git.mxchange.org Git - friendica.git/commitdiff
fix random mime boundary generation
authorfabrixxm <fabrix.xm@gmail.com>
Tue, 20 Jan 2015 18:21:49 +0000 (19:21 +0100)
committerfabrixxm <fabrix.xm@gmail.com>
Tue, 20 Jan 2015 18:21:49 +0000 (19:21 +0100)
second and third random numbers in mime boundary was alwasy 10000000000

include/Emailer.php

index e11954200c5aa47807ab6c51255177a6fdc886c6..a3f85433de04335c57cfabb8a7a5448bf099ca18 100644 (file)
@@ -30,8 +30,8 @@ class Emailer {
 
                // generate a mime boundary
                $mimeBoundary   =rand(0,9)."-"
-                               .rand(10000000000,9999999999)."-"
-                               .rand(10000000000,9999999999)."=:"
+                               .rand(10000000000,99999999999)."-"
+                               .rand(10000000000,99999999999)."=:"
                                .rand(10000,99999);
 
                // generate a multipart/alternative message header