Commit 769f4071 authored by jocuri%softhome.net's avatar jocuri%softhome.net

Patch for bug 245976: fix software error caused by taint issue when trying to…

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.
parent d7173558
...@@ -294,7 +294,7 @@ if ($action eq 'new') { ...@@ -294,7 +294,7 @@ if ($action eq 'new') {
PutTrailer($localtrailer); PutTrailer($localtrailer);
exit; exit;
} }
if ($sortkey!~/^[0-9]+$/) { if (!detaint_natural($sortkey)) {
print "The sortkey for a milestone must be a number. Please press\n"; print "The sortkey for a milestone must be a number. Please press\n";
print "<b>Back</b> and try again.\n"; print "<b>Back</b> and try again.\n";
PutTrailer($localtrailer); PutTrailer($localtrailer);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment