[xoops-cvslog 427] CVS update: xoops2jp/html/modules/contact

Back to archive index

Minahito minah****@users*****
2005年 10月 13日 (木) 02:24:51 JST


Index: xoops2jp/html/modules/contact/index.php
diff -u xoops2jp/html/modules/contact/index.php:1.5 xoops2jp/html/modules/contact/index.php:1.5.2.1
--- xoops2jp/html/modules/contact/index.php:1.5	Mon Sep  5 05:46:09 2005
+++ xoops2jp/html/modules/contact/index.php	Thu Oct 13 02:24:51 2005
@@ -1,5 +1,5 @@
 <?php
-// $Id: index.php,v 1.5 2005/09/04 20:46:09 onokazu Exp $
+// $Id: index.php,v 1.5.2.1 2005/10/12 17:24:51 minahito Exp $
 //  ------------------------------------------------------------------------ //
 //                XOOPS - PHP Content Management System                      //
 //                    Copyright (c) 2000 XOOPS.org                           //
@@ -43,6 +43,12 @@
 } else {
     $myts =& MyTextSanitizer::getInstance();
     $usersEmail = $myts->stripSlashesGPC($_POST['usersEmail']);
+	if(!checkEmail($usersEmail)) {
+		// ToDo: use message catalog
+		redirect_header(XOOPS_URL."/modules/".$xoopsModule->getVar('dirname')."/index.php",2,"EMAIL ERROR");
+		exit();
+	}
+
     $usersCompanyName = $myts->stripSlashesGPC($_POST['usersCompanyName']);
     $usersCompanyLocation = $myts->stripSlashesGPC($_POST['usersCompanyLocation']);
     $usersComments = $myts->stripSlashesGPC($_POST['usersComments']);


xoops-cvslog メーリングリストの案内
Back to archive index