]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Patch for bug 245976: fix software error caused by taint issue when trying to add...
authorjocuri%softhome.net <>
Sat, 12 Jun 2004 00:03:50 +0000 (00:03 +0000)
committerjocuri%softhome.net <>
Sat, 12 Jun 2004 00:03:50 +0000 (00:03 +0000)
editmilestones.cgi

index 43cded1eac1eb270e959e698c0e76d593aaee319..5100577eedd1b11719aa40ff3c49236bda2f3e88 100755 (executable)
@@ -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);