From 7fa045d01faf68f35814861d4c13ab8a7127c0d4 Mon Sep 17 00:00:00 2001 From: "bbaetz%student.usyd.edu.au" <> Date: Tue, 5 Feb 2002 08:11:48 +0000 Subject: Bug 122418 pt2 - obsoleting a patch from the create attachment screen gave a taint error. --- attachment.cgi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'attachment.cgi') 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; -- cgit v1.2.3-24-g4f1b