$boundary = md5(uniqid($_SERVER['REQUEST_TIME']));
$boundary for "multipart/alternative" and $boundary for "multipart/mixed" are equal
We ask me "WHY?"
I don't know!
php 5.4.17
win xp
We need $more_entropy!
function mimemail_multipart_body($parts, $content_type = 'multipart/mixed; charset=utf-8', $sub_part = FALSE) {
- $boundary = md5(uniqid($_SERVER['REQUEST_TIME']));
+ $boundary = md5(uniqid($_SERVER['REQUEST_TIME'], true));
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | mimemail-2045699-4-d7.patch | 620 bytes | sgabe |
| #4 | mimemail-2045699-4-d6.patch | 478 bytes | sgabe |
Comments
Comment #1
dmitriy.trt commentedFrom the PHP manual discussion:
Comment #2
sgabe commentedI can't reproduce this, the boundaries seem to be fine.
Comment #3
Punk_UnDeaDbut Drupal must work in Windows XP to
Comment #4
sgabe commentedThe attached patches have been committed to both branches.