Changeset 2136


Ignore:
Timestamp:
Oct 13, 2007, 12:14:23 AM (17 years ago)
Author:
rub
Message:

Replace htmlentities by htmlspecialchars on NBM in order to send a correct UTF8 mail.
Quote mail charset + add debug mail informations
Fix "check user with same mail" where null email was not discarded

Location:
trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/notification_by_mail.php

    r2089 r2136  
    248248          // On HTML mail, detects if the content are HTML format.
    249249          // If it's plain text format, convert content to readable HTML
    250           $customize_mail_content = nl2br(htmlentities($customize_mail_content));
     250          $customize_mail_content = nl2br(htmlspecialchars($customize_mail_content));
    251251        }
    252252
  • trunk/include/functions_mail.inc.php

    r2129 r2136  
    705705    }
    706706    $file = fopen($filename, 'w+');
     707    fwrite($file, $to);
     708    fwrite($file, $cvt_subject);
     709    fwrite($file, $headers);
    707710    fwrite($file, $content);
    708711    fclose($file);
  • trunk/plugins/c13y_upgrade/initialize.inc.php

    r2126 r2136  
    4444select count(*)
    4545from '.USERS_TABLE.'
     46where '.$conf['user_fields']['email'].' is not null
    4647group by upper('.$conf['user_fields']['email'].')
    4748having count(*) > 1
  • trunk/template/yoga/mail/text/html/header.tpl

    r1912 r2136  
    11-----={BOUNDARY_KEY}
    2 Content-Type: {CONTENT_TYPE}; charset={CONTENT_ENCODING};
     2Content-Type: {CONTENT_TYPE}; charset="{CONTENT_ENCODING}";
    33Content-Transfer-Encoding: 8bit
    44
  • trunk/template/yoga/mail/text/plain/header.tpl

    r1912 r2136  
    11-----={BOUNDARY_KEY}
    2 Content-Type: {CONTENT_TYPE}; charset={CONTENT_ENCODING};
     2Content-Type: {CONTENT_TYPE}; charset="{CONTENT_ENCODING}";
    33Content-Transfer-Encoding: 8bit
Note: See TracChangeset for help on using the changeset viewer.