summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjocuri%softhome.net <>2004-06-12 02:03:50 +0200
committerjocuri%softhome.net <>2004-06-12 02:03:50 +0200
commit769f4071b43017decf24293fb15fdea5245bf712 (patch)
tree85ba0467955afa6b92f6360d047a4a21ae8cc0e4
parentd71735586813a65dffc484454a528c6ea112b6d1 (diff)
downloadbugzilla-769f4071b43017decf24293fb15fdea5245bf712.tar.gz
bugzilla-769f4071b43017decf24293fb15fdea5245bf712.tar.xz
Patch for bug 245976: fix software error caused by taint issue when trying to add a milestone; patch by Byron Jones (glob) <bugzilla@glob.com.au>; r=vladd, a=justdave.
-rwxr-xr-xeditmilestones.cgi2
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);