]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Patch for bug 270404: Add detaint_natural and fix use lib instruction in sendbugemail...
authorjocuri%softhome.net <>
Sat, 20 Nov 2004 20:35:43 +0000 (20:35 +0000)
committerjocuri%softhome.net <>
Sat, 20 Nov 2004 20:35:43 +0000 (20:35 +0000)
contrib/sendbugmail.pl

index 2f30e2864b9ae06f000af3af5f58ee089b0e7177..7380523242361a303a5b6c58fefef329d4a0bbb2 100644 (file)
@@ -4,7 +4,7 @@
 #
 # Nick Barnes, Ravenbrook Limited, 2004-04-01.
 #
-# $Id: sendbugmail.pl,v 1.1 2004/07/05 21:54:01 justdave%bugzilla.org Exp $
+# $Id: sendbugmail.pl,v 1.1.2.1 2004/11/20 12:35:43 jocuri%softhome.net Exp $
 # 
 # Bugzilla email script for Bugzilla 2.17.4 and later.  Invoke this to send
 # bugmail for a bug which has been changed directly in the database.
@@ -12,9 +12,9 @@
 # users associated with the bug.  Replaces the old "processmail"
 # script.
 # 
-# Usage: bugmail.pl bug_id user_email
+# Usage: perl -T contrib/sendbugmail.pl bug_id user_email
 
-use lib qw(..);
+use lib qw(.);
 
 require "globals.pl";
 use Bugzilla::BugMail;
@@ -38,6 +38,8 @@ if (!($bugnum =~ /^(\d+)$/)) {
   usage();
 }
 
+detaint_natural($bugnum);
+
 SendSQL("SELECT bug_id FROM bugs WHERE bug_id = $bugnum");
 
 if (!FetchOneColumn()) {