about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rwxr-xr-xhtml/submit.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/html/submit.php b/html/submit.php
index 3be3372..e0c6435 100755
--- a/html/submit.php
+++ b/html/submit.php
@@ -105,6 +105,11 @@ if (isset($_REQUEST["username"]) && isset($_REQUEST["email"])) {
         $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