Ignore:
Timestamp:
Oct 30, 2020 11:44:05 PM (4 years ago)
Author:
anonymous
Message:

Minor polish. Add getHttpHeader function

File:
1 edited

Legend:

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

    r724 r735  
    112112        . '((?:[^.<>\s@",\[\]]+[^<>\s@",\[\]])*[^.<>\s@",\[\]]+)'       // Local-part
    113113        . '@'                                                           // @
    114         . '((?:(\[)|[A-Z0-9]?)'                                         // Domain, first char
     114        . '((?:(\[)|[a-z0-9]?)'                                         // Domain, first char
    115115        . '(?(4)'                                                       // Domain conditional for if first domain char is [
    116116        . '(?:[0-9]{1,3}\.){3}[0-9]{1,3}\]'                             // TRUE, matches IP address
    117117        . '|'
    118         . '[.-]?(?:[A-Z0-9]+[-.])*(?:[A-Z0-9]+\.)+[A-Z]{2,6}))'         // FALSE, matches domain name
     118        . '[.-]?(?:[a-z0-9]+[-.])*(?:[a-z0-9]+\.)+[a-z]{2,19}))'        // FALSE, matches domain name
    119119        . '(?(1)'                                                       // Comment conditional for if initial < exists
    120120        . '(?:\s*>\s*|>\s+\([^,@]+\)\s*)'                               // TRUE, ensure ending >
     
    398398            $envelope_sender_address = sprintf('<%s>', trim($this->_params['envelope_sender_address'], '<>'));
    399399        } else {
    400             $envelope_sender_address = preg_replace('/^.*<?([^\s@\[\]<>()]+\@[A-Za-z0-9.-]{1,}\.[A-Za-z]{2,5})>?$/iU' . $app->getParam('preg_u'), '$1', $this->_params['from']);
     400            $envelope_sender_address = preg_replace('/^.*<?([^\s@\[\]<>()]+\@[A-Za-z0-9.-]{1,}\.[A-Za-z]{2,19})>?$/iU' . $app->getParam('preg_u'), '$1', $this->_params['from']);
    401401        }
    402402        if ('' != $envelope_sender_address && $this->validEmail($envelope_sender_address)) {
Note: See TracChangeset for help on using the changeset viewer.