ascii only please

This commit is contained in:
root 2019-09-18 11:30:30 -04:00
parent 9b917aa5ad
commit b34feb3994
1 changed files with 1 additions and 1 deletions

View File

@ -69,7 +69,7 @@ if (isset($_REQUEST["username"]) && isset($_REQUEST["email"])) {
$message .= "<li>username too long (32 character max)</li>"; $message .= "<li>username too long (32 character max)</li>";
if (!preg_match('/^[a-z][a-z0-9]{1,31}$/', $name)) if (!preg_match('/^[a-z][a-z0-9]{1,31}$/', $name))
$message .= "<li>username contains invalid characters (lowercase only, must start with a letter)</li>"; $message .= "<li>username contains invalid characters (lowercase ascii only, must start with a letter)</li>";
if ($_REQUEST["sshkey"] == "" || mb_substr($_REQUEST["sshkey"], 0, 4) !== "ssh-") if ($_REQUEST["sshkey"] == "" || mb_substr($_REQUEST["sshkey"], 0, 4) !== "ssh-")
$message .= '<li>ssh key required: please create one and submit the public key. ' $message .= '<li>ssh key required: please create one and submit the public key. '