summaryrefslogtreecommitdiffstats
path: root/attachment.cgi
diff options
context:
space:
mode:
authorbbaetz%student.usyd.edu.au <>2002-02-05 09:11:48 +0100
committerbbaetz%student.usyd.edu.au <>2002-02-05 09:11:48 +0100
commit7fa045d01faf68f35814861d4c13ab8a7127c0d4 (patch)
tree26400156266138932112bb2e78b5d5df6510ac48 /attachment.cgi
parent90c95ff3e9c30f3c75b0c93af12b7317902ada3a (diff)
downloadbugzilla-7fa045d01faf68f35814861d4c13ab8a7127c0d4.tar.gz
bugzilla-7fa045d01faf68f35814861d4c13ab8a7127c0d4.tar.xz
Bug 122418 pt2 - obsoleting a patch from the create attachment screen gave
a taint error.
Diffstat (limited to 'attachment.cgi')
-rwxr-xr-xattachment.cgi2
1 files changed, 1 insertions, 1 deletions
diff --git a/attachment.cgi b/attachment.cgi
index 368ad702e..f58844835 100755
--- a/attachment.cgi
+++ b/attachment.cgi
@@ -314,7 +314,7 @@ sub validateObsolete
# Make sure the attachment id is valid and the user has permissions to view
# the bug to which it is attached.
foreach my $attachid (@{$::MFORM{'obsolete'}}) {
- $attachid =~ /^[1-9][0-9]*$/
+ detaint_natural($attachid)
|| DisplayError("The attachment number of one of the attachments
you wanted to obsolete is invalid.")
&& exit;