Ignore:
Timestamp:
Jul 24, 2022 4:01:37 PM (21 months ago)
Author:
anonymous
Message:

Add Email::setRawBody() for messages manually composed and encoded outside of this Email class, and need to bypass replacements, detection of mail header injection attacks, and the encoding provided by mb_send_mail().

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/Utilities.inc.php

    r773 r774  
    287287    $replace['_apostrophes']     = '’';
    288288
    289     // double--hyphens  →  en — dashes
     289    // double--hyphens  →  en – dashes
    290290    $search['_em_dash']          = '/(?<=[\w\s"\'”’)])--(?=[\w\s“”‘"\'(?])/imsu';
    291291    $replace['_em_dash']         = ' – ';
Note: See TracChangeset for help on using the changeset viewer.