longer .tld support

This commit is contained in:
mischa 2022-05-16 21:47:32 +02:00
parent e6a83a4efd
commit 2b18d5c4dd
1 changed files with 3 additions and 3 deletions

View File

@ -32,7 +32,7 @@
include "config.inc";
// Minimalist Admin version
$version = "0.6";
$version = "0.7";
// Set some variables.
$get_list = "";
@ -116,7 +116,7 @@ if ($_SERVER['REQUEST_METHOD'] == "POST")
exit;
}
if (!preg_match('/^[-!#$%&\'*+\\.\/0-9=?A-Z^_{|}~]+' . '@' . '([-0-9A-Z]+\.)+' . '([0-9A-Z]){2,4}$/i', trim($email)))
if (!preg_match('/^[-!#$%&\'*+\\.\/0-9=?A-Z^_{|}~]+' . '@' . '([-0-9A-Z]+\.)+' . '([0-9A-Z]){2,10}$/i', trim($email)))
{
print "$error_email_notvalid\n";
print_form();
@ -198,7 +198,7 @@ function print_footer()
{
global $version;
print "<div id=\"footer\">\n";
print "Copyright (c) 2005-2011 by <a target=\"blank\" href=\"http://high5.net/\">High5!</a> -- Minimalist Admin v$version</a>\n";
print "Copyright (c) 2005-2022 by <a target=\"blank\" href=\"http://high5.net/\">High5!</a> -- Minimalist Admin v$version</a>\n";
print "</div>\n";
print "</body>\n";
print "</html>\n";