diff --git a/git-php.php b/git-php.php index bdfff2dc5..d60d12038 100644 --- a/git-php.php +++ b/git-php.php @@ -58,8 +58,8 @@ if (count($_POST) && (!isset($_POST['purpose']) || !is_array($_POST['purpose']) // Check for errors if (empty($_POST['id'])) { $error .= "You must supply a desired Git user id.
"; - } elseif(!preg_match('!^[a-z]\w+$!', $_POST['id'])) { - $error .= "Your user id must be >1 char long, start with ". + } elseif(!preg_match('!^[a-z]\w+$!', $_POST['id']) || strlen($_POST['id']) > 16) { + $error .= "Your user id must be from 1-16 characters long, start with ". "a letter and contain nothing but a-z, 0-9, and _
"; } if (empty($_POST['fullname'])) { @@ -394,7 +394,7 @@ foreach ($purposes as $i => $p) { ?> - User ID:
(single word, lower case) + User ID:
(single word, lower case, max 16 characters)