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

Zurück zum Archiv-Index

onokazu onoka****@users*****
2005年 10月 24日 (月) 20:44:17 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.6
--- xoops2jp/html/modules/contact/index.php:1.5	Mon Sep  5 05:46:09 2005
+++ xoops2jp/html/modules/contact/index.php	Mon Oct 24 20:44:17 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.6 2005/10/24 11:44:17 onokazu 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 メーリングリストの案内
Zurück zum Archiv-Index