X-Git-Url: https://scripts.mit.edu/gitweb/autoinstallsdev/mediawiki.git/blobdiff_plain/19e297c21b10b1b8a3acad5e73fc71dcb35db44a..6932310fd58ebef145fa01eb76edf7150284d8ea:/vendor/pear/mail_mime/tests/test_Bug_11381.phpt diff --git a/vendor/pear/mail_mime/tests/test_Bug_11381.phpt b/vendor/pear/mail_mime/tests/test_Bug_11381.phpt new file mode 100644 index 00000000..44842c27 --- /dev/null +++ b/vendor/pear/mail_mime/tests/test_Bug_11381.phpt @@ -0,0 +1,27 @@ +--TEST-- +Bug #11381 Domain name is attached to content-id, trailing greater-than sign is not removed +--SKIPIF-- +--FILE-- +'; + +require_once('Mail/mime.php'); + +$mime=new Mail_mime(); + +$body=''; + +$mime->setHTMLBody($body); +$mime->setFrom($from); +$mime->addHTMLImage('','image/gif', 'test.gif', false); +$msg=$mime->get(); + +$header = preg_match('|Content-ID: <[0-9a-fA-F]+@from.example.com>|', $msg); +if (!$header){ + print("FAIL:\n"); + print($msg); +}else{ + print("OK"); +} +--EXPECT-- +OK