OSDN Git Service

Update mkconfig.php
authorJoshua Thomas Przyborowski <joshua.przyborowski@gmail.com>
Thu, 14 Dec 2017 02:11:42 +0000 (20:11 -0600)
committerGitHub <noreply@github.com>
Thu, 14 Dec 2017 02:11:42 +0000 (20:11 -0600)
setup/mkconfig.php

index 94fffc1..ec06e1e 100644 (file)
@@ -86,6 +86,12 @@ if (pre_strlen($_POST['AdminUser'])<"3") { $Error="Yes";
 echo "<br />Your user name is too small."; }
 if (pre_strlen($_POST['AdminEmail'])<"3") { $Error="Yes";
 echo "<br />Your email name is too small."; }
+if (!filter_var($_POST['AdminEmail'], FILTER_VALIDATE_EMAIL)) { $Error="Yes";
+echo "<br />Your email is not a valid email address."; }
+if (!filter_var($_POST['BoardURL'], FILTER_VALIDATE_URL)) { $Error="Yes";
+echo "<br />Your board url is not a valid web url."; }
+if (!filter_var($_POST['WebURL'], FILTER_VALIDATE_URL)) { $Error="Yes";
+echo "<br />Your website url is not a valid web url."; }
 if (pre_strlen($_POST['AdminPasswords'])>"60") { $Error="Yes";
 echo "<br />Your password is too big."; }
 if (pre_strlen($_POST['AdminUser'])>"30") { $Error="Yes";