Changeset 735 for trunk/lib/Email.inc.php
- Timestamp:
- Oct 30, 2020 11:44:05 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/Email.inc.php
r724 r735 112 112 . '((?:[^.<>\s@",\[\]]+[^<>\s@",\[\]])*[^.<>\s@",\[\]]+)' // Local-part 113 113 . '@' // @ 114 . '((?:(\[)|[ A-Z0-9]?)' // Domain, first char114 . '((?:(\[)|[a-z0-9]?)' // Domain, first char 115 115 . '(?(4)' // Domain conditional for if first domain char is [ 116 116 . '(?:[0-9]{1,3}\.){3}[0-9]{1,3}\]' // TRUE, matches IP address 117 117 . '|' 118 . '[.-]?(?:[ A-Z0-9]+[-.])*(?:[A-Z0-9]+\.)+[A-Z]{2,6}))'// FALSE, matches domain name118 . '[.-]?(?:[a-z0-9]+[-.])*(?:[a-z0-9]+\.)+[a-z]{2,19}))' // FALSE, matches domain name 119 119 . '(?(1)' // Comment conditional for if initial < exists 120 120 . '(?:\s*>\s*|>\s+\([^,@]+\)\s*)' // TRUE, ensure ending > … … 398 398 $envelope_sender_address = sprintf('<%s>', trim($this->_params['envelope_sender_address'], '<>')); 399 399 } 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']); 401 401 } 402 402 if ('' != $envelope_sender_address && $this->validEmail($envelope_sender_address)) {
Note: See TracChangeset
for help on using the changeset viewer.