onokazu
onoka****@users*****
2005年 10月 24日 (月) 20:44:17 JST
Index: xoops2jp/html/misc.php diff -u xoops2jp/html/misc.php:1.5 xoops2jp/html/misc.php:1.6 --- xoops2jp/html/misc.php:1.5 Mon Sep 5 05:46:08 2005 +++ xoops2jp/html/misc.php Mon Oct 24 20:44:16 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.6 2005/10/24 11:44:16 onokazu 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();