diff options
Diffstat (limited to 'html')
-rwxr-xr-x | html/submit.php | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/html/submit.php b/html/submit.php index e51900b..e8fcd15 100755 --- a/html/submit.php +++ b/html/submit.php @@ -101,15 +101,10 @@ if (isset($_REQUEST["username"]) && isset($_REQUEST["email"])) { $message .= "<li>invalid email address. did you mean: " . htmlspecialchars($result["email"]) . "</li>"; } - if ($_REQUEST["sshkey"] == "") { + if ($_REQUEST["sshkey"] == "" || substr($_REQUEST["sshkey"], 0, 4) !== "ssh-") { $message .= "<li>ssh key required: please create one and submit the public key</li>"; } - if (mb_substr($_REQUEST["sshkey"], 0, 4) !== "ssh-") { - $message .= "<li>PUBLIC ssh key required: please create one and submit the public key</li>"; - - } - if ($message == "") { // no validation errors |