X7ROOT File Manager
Current Path:
/home/gfecatvj/sites/realesbar-X/vendor/symfony/mime/Encoder
home
/
gfecatvj
/
sites
/
realesbar-X
/
vendor
/
symfony
/
mime
/
Encoder
/
📁
..
📄
AddressEncoderInterface.php
(689 B)
📄
Base64ContentEncoder.php
(1.29 KB)
📄
Base64Encoder.php
(1.25 KB)
📄
Base64MimeHeaderEncoder.php
(1.26 KB)
📄
ContentEncoderInterface.php
(668 B)
📄
EightBitContentEncoder.php
(834 B)
📄
EncoderInterface.php
(717 B)
📄
IdnAddressEncoder.php
(1.48 KB)
📄
MimeHeaderEncoderInterface.php
(467 B)
📄
QpContentEncoder.php
(1.78 KB)
📄
QpEncoder.php
(7.7 KB)
📄
QpMimeHeaderEncoder.php
(1.05 KB)
📄
Rfc2231Encoder.php
(1.41 KB)
Editing: IdnAddressEncoder.php
<?php /* * This file is part of the Symfony package. * * (c) Fabien Potencier <fabien@symfony.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Mime\Encoder; use Symfony\Component\Mime\Exception\AddressEncoderException; /** * An IDN email address encoder. * * Encodes the domain part of an address using IDN. This is compatible will all * SMTP servers. * * This encoder does not support email addresses with non-ASCII characters in * local-part (the substring before @). * * @author Christian Schmidt */ final class IdnAddressEncoder implements AddressEncoderInterface { /** * Encodes the domain part of an address using IDN. * * @throws AddressEncoderException If local-part contains non-ASCII characters */ public function encodeString(string $address): string { $i = strrpos($address, '@'); if (false !== $i) { $local = substr($address, 0, $i); $domain = substr($address, $i + 1); if (preg_match('/[^\x00-\x7F]/', $local)) { throw new AddressEncoderException(sprintf('Non-ASCII characters not supported in local-part os "%s".', $address)); } if (preg_match('/[^\x00-\x7F]/', $domain)) { $address = sprintf('%s@%s', $local, idn_to_ascii($domain, 0, INTL_IDNA_VARIANT_UTS46)); } } return $address; } }
Upload File
Create Folder