[PHP-users 8594] Òåº ÛÐÈÐóåòó ¸µ¹²Ý ÒåºÀµµ¬É½¸½´Ø¿ô¤Ë¤Ä¤¤¤Æ
AriAri
php-users@php.gr.jp
Fri, 12 Jul 2002 00:06:03 +0900
¤³¤ó¤Ð¤ó¤ÏAriAri¤Ç¤¹¡£
¶µ¤¨¤Æ¤¤¤¿¤À¤¤¤¿¥¹¥¯¥ê¥×¥È¤Ë¹¹¤Ë¼ê¤ò²Ã¤¨¤Æ"AriAri" ¤È "<" ¤È ">" ¤ò¼è¤Ã¤Æ¤ß
¤Þ¤·¤¿
ÎϤº¤¯¤Ç¤È¤Ã¤Æ¤ß¤Þ¤·¤¿¤¬¥¤¥Þ¥¤¥Á¤Ã¤Æ´¶¤¸¤Ê¤Î¤Ç¤¹¤¬¤´Êó¹ð¤Þ¤Ç¤Ë¡¦¡¦¡¦
$mail=<<< END_OF_MAIL
From: "AriAri" <ariaricom@ybb.ne.jp>
°ìÉô¤Î¥Ø¥Ã¥À¡¼¤ÈËÜʸ¾Êά
END_OF_MAIL;
if (eregi("(^|\n)From:[\t ]*([^\n]+)",$mail,$regs)) {
$from = $regs[2];
--------------Add-----------------------
$from = ereg_replace("(^[\"]+).+([\"]+)", "", $from);
$from = ereg_replace("(\<|\>)","",$from);
$from = ereg_replace("([ ])","",$from);
--------------end-----------------------
}
add¡Áend¤Þ¤Ç¤òÄɲäǤ¹¡£
£±¡¥¡Ê""¤Ç°Ï¤Þ¤ì¤¿Éôʬ¡Ë"AriAri"¤òºï½ü
£²¡¥"<"¡¡¤È¡¡">"¤òºï½ü
£³¡¥"¡¡"¥¹¥Ú¡¼¥¹¤òºï½ü
̵Íý¥ä¥ê¤Ç¤¹¤ß¤Þ¤»¤ó(>_<)
£±¤Ä¤Ë¤Þ¤È¤á¤é¤ì¤¿¤é¥¤¥¤¤Ê¡¼¡ª¤Ç¤¹¡£