OSDN Git Service

Update profilemain.php
[idb/iDB.git.git] / inc / profilemain.php
index ab7acf0..7464cd0 100644 (file)
@@ -1180,6 +1180,8 @@ if($YourPassword!=$OldPassword) { $Error="Yes"; ?>
 <div class="TableMessage" style="text-align: center;">Your old password is too big.<br />&nbsp;</div>
 <?php } if ($_POST['Password']!=$_POST['RePassword']) { $Error="Yes";  ?>
 <div class="TableMessage" style="text-align: center;">Your passwords did not match.<br />&nbsp;</div>
+<?php } if (!filter_var($_POST['Email'], FILTER_VALIDATE_EMAIL)) { $Error="Yes";  ?>
+<div class="TableMessage" style="text-align: center;">Your email is not a valid email address.<br />&nbsp;</div>
 <?php }
        $NewIP=$_SERVER['REMOTE_ADDR'];
        if($Error!="Yes") {