Minahito
minah****@users*****
2005年 10月 13日 (木) 02:07:05 JST
Index: xoops2jp/html/misc.php diff -u xoops2jp/html/misc.php:1.5 xoops2jp/html/misc.php:1.5.2.1 --- xoops2jp/html/misc.php:1.5 Mon Sep 5 05:46:08 2005 +++ xoops2jp/html/misc.php Thu Oct 13 02:07:05 2005 @@ -1,5 +1,5 @@ <?php -// $Id: misc.php,v 1.5 2005/09/04 20:46:08 onokazu Exp $ +// $Id: misc.php,v 1.5.2.1 2005/10/12 17:07:05 minahito Exp $ // ------------------------------------------------------------------------ // // XOOPS - PHP Content Management System // // Copyright (c) 2000 XOOPS.org // @@ -139,7 +139,7 @@ $yname = $myts->stripSlashesGPC(trim($_POST['yname'])); $fname = $myts->stripSlashesGPC(trim($_POST['fname'])); $fmail = $myts->stripSlashesGPC(trim($_POST['fmail'])); - if (!checkEmail($fmail) || !checkEmail($ymail)) { + if (!checkEmail($fmail) || !checkEmail($ymail) || preg_match("/[\\0-\\31]/",$yname)) { $errormessage = _MSC_INVALIDEMAIL1."<br />"._MSC_INVALIDEMAIL2.""; redirect_header(XOOPS_URL."/misc.php?action=showpopups&type=friend&op=sendform",2,$errormessage); exit();