diff options
-rwxr-xr-x | editmilestones.cgi | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/editmilestones.cgi b/editmilestones.cgi index 43cded1ea..5100577ee 100755 --- a/editmilestones.cgi +++ b/editmilestones.cgi @@ -294,7 +294,7 @@ if ($action eq 'new') { PutTrailer($localtrailer); exit; } - if ($sortkey!~/^[0-9]+$/) { + if (!detaint_natural($sortkey)) { print "The sortkey for a milestone must be a number. Please press\n"; print "<b>Back</b> and try again.\n"; PutTrailer($localtrailer); |