404

[ Avaa Bypassed ]




Upload:

Command:

elspacio@3.144.48.228: ~ $
--TEST--
Bug #21205  Handling ISO-2022-JP headers
--SKIPIF--
<?php
include "PEAR.php";
if (!extension_loaded('mbstring')) {
    if (!PEAR::loadExtension('mbstring')) {
        print('SKIP could not load mbstring module');
    }
}
--FILE--
<?php
require_once('Mail/mimePart.php');
$tests = array(
    '□京都府□',
    '∠∠∠∠',
);
$addr = ' <aaa@bbb.ccc>';
$charset = 'ISO-2022-JP';
$encoding = 'base64';
foreach ($tests as $test) {
    $test = mb_convert_encoding($test, $charset, 'UTF-8');
    print Mail_mimePart::encodeHeader("subject", $test,       $charset, $encoding) . PHP_EOL;
    print Mail_mimePart::encodeHeader("to",      $test.$addr, $charset, $encoding) . PHP_EOL;
    $test = '"' . $test . '"';
    print Mail_mimePart::encodeHeader("subject", $test,       $charset, $encoding) . PHP_EOL;
    print Mail_mimePart::encodeHeader("to",      $test.$addr, $charset, $encoding) . PHP_EOL;
}
?>
--EXPECT--
=?ISO-2022-JP?B?GyRCIiI1fkVUSVwiIhsoQg==?=
=?ISO-2022-JP?B?GyRCIiI1fkVUSVwiIhsoQg==?= <aaa@bbb.ccc>
=?ISO-2022-JP?B?GyRCIiI1fkVUSVwiIhsoQg==?=
=?ISO-2022-JP?B?GyRCIiI1fkVUSVwiIhsoQg==?= <aaa@bbb.ccc>
=?ISO-2022-JP?B?GyRCIlwiXCJcIlwbKEI=?=
=?ISO-2022-JP?B?GyRCIlwiXCJcIlwbKEI=?= <aaa@bbb.ccc>
=?ISO-2022-JP?B?GyRCIlwiXCJcIlwbKEI=?=
=?ISO-2022-JP?B?GyRCIlwiXCJcIlwbKEI=?= <aaa@bbb.ccc>

Filemanager

Name Type Size Permission Actions
class-filename.phpt File 242 B 0644
content_transfer_encoding.phpt File 924 B 0644
encoding_case.phpt File 244 B 0644
headers_with_mbstring.phpt File 8.65 KB 0644
headers_without_mbstring.phpt File 8.32 KB 0644
qp_encoding_test.phpt File 3.47 KB 0644
sleep_wakeup_EOL-bug3488-part1.phpt File 545 B 0644
sleep_wakeup_EOL-bug3488-part2.phpt File 586 B 0644
test_Bug_10596_1.phpt File 296 B 0644
test_Bug_10816_1.phpt File 570 B 0644
test_Bug_10999_1.phpt File 491 B 0644
test_Bug_11381.phpt File 557 B 0644
test_Bug_11731.phpt File 684 B 0644
test_Bug_12165.phpt File 381 B 0644
test_Bug_12385_1.phpt File 539 B 0644
test_Bug_12411.phpt File 649 B 0644
test_Bug_12466.phpt File 445 B 0644
test_Bug_13032.phpt File 539 B 0644
test_Bug_13444.phpt File 670 B 0644
test_Bug_13962.phpt File 367 B 0644
test_Bug_14529.phpt File 521 B 0644
test_Bug_14779.phpt File 489 B 0644
test_Bug_14780.phpt File 351 B 0644
test_Bug_15320.phpt File 462 B 0644
test_Bug_16539.phpt File 7.34 KB 0644
test_Bug_17025.phpt File 412 B 0644
test_Bug_17175.phpt File 695 B 0644
test_Bug_18083.phpt File 592 B 0644
test_Bug_18772.phpt File 880 B 0644
test_Bug_19497.phpt File 547 B 0644
test_Bug_20226.phpt File 341 B 0644
test_Bug_20273.phpt File 302 B 0644
test_Bug_20563.phpt File 378 B 0644
test_Bug_20564.phpt File 270 B 0644
test_Bug_21027.phpt File 7.12 KB 0644
test_Bug_21098.phpt File 390 B 0644
test_Bug_21205.phpt File 1.28 KB 0644
test_Bug_21206.phpt File 590 B 0644
test_Bug_21255.phpt File 352 B 0644
test_Bug_3513_1.phpt File 475 B 0644
test_Bug_3513_2.phpt File 567 B 0644
test_Bug_3513_3.phpt File 631 B 0644
test_Bug_7561_1.phpt File 645 B 0644
test_Bug_8386_1.phpt File 551 B 0644
test_Bug_8541_1.phpt File 499 B 0644
test_Bug_9722_1.phpt File 360 B 0644
test_Bug_GH16.phpt File 1.56 KB 0644
test_Bug_GH19.phpt File 997 B 0644
test_Bug_GH26.phpt File 755 B 0644
test_linebreak_dot.phpt File 1.65 KB 0644
test_linebreak_larger_76.phpt File 2.25 KB 0644