File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 58
58
// Check for errors
59
59
if (empty ($ _POST ['id ' ])) {
60
60
$ error .= "You must supply a desired Git user id. <br> " ;
61
- } elseif (!preg_match ('!^[a-z]\w+$! ' , $ _POST ['id ' ])) {
62
- $ error .= "Your user id must be >1 char long, start with " .
61
+ } elseif (!preg_match ('!^[a-z]\w+$! ' , $ _POST ['id ' ]) || strlen ( $ _POST [ ' id ' ]) > 16 ) {
62
+ $ error .= "Your user id must be from 1-16 characters long, start with " .
63
63
"a letter and contain nothing but a-z, 0-9, and _ <br> " ;
64
64
}
65
65
if (empty ($ _POST ['fullname ' ])) {
@@ -394,7 +394,7 @@ class="max" value="<?php if (isset($_POST['email'])) echo clean($_POST['email'])
394
394
<td><input type="checkbox" name="guidelines" value="1" id="vcs-guidelines"> <label for="vcs-guidelines">Check the box if you agree</label></td>
395
395
</tr>
396
396
<tr>
397
- <th class="subr">User ID:<br> <small>(single word, lower case)</small></th>
397
+ <th class="subr">User ID:<br> <small>(single word, lower case, max 16 characters )</small></th>
398
398
<td><input type="text" size="10" name="id"
399
399
class="max" value="<?php if (isset ($ _POST ['id ' ])) echo clean ($ _POST ['id ' ]);?> "></td>
400
400
</tr>
You can’t perform that action at this time.
0 commit comments