summaryrefslogtreecommitdiffstats
path: root/contrib/sendbugmail.pl
diff options
context:
space:
mode:
authorjocuri%softhome.net <>2004-11-20 21:35:17 +0100
committerjocuri%softhome.net <>2004-11-20 21:35:17 +0100
commitcde5ae8d22e97c8cc993c04362ba5be010717b53 (patch)
tree4840480479dcb04cbb22ae8ad3dfa6f0c380fe4c /contrib/sendbugmail.pl
parent554013819f4722e49a1d262123eba7a2b84be7d2 (diff)
downloadbugzilla-cde5ae8d22e97c8cc993c04362ba5be010717b53.tar.gz
bugzilla-cde5ae8d22e97c8cc993c04362ba5be010717b53.tar.xz
Patch for bug 270404: Add detaint_natural and fix use lib instruction in sendbugemail.pl to make it functional; patch by Nick.Barnes@pobox.com, r=justdave, a=justdave.
Diffstat (limited to 'contrib/sendbugmail.pl')
-rw-r--r--contrib/sendbugmail.pl8
1 files changed, 5 insertions, 3 deletions
diff --git a/contrib/sendbugmail.pl b/contrib/sendbugmail.pl
index 2f30e2864..8e00ff49c 100644
--- a/contrib/sendbugmail.pl
+++ b/contrib/sendbugmail.pl
@@ -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.2 2004/11/20 12:35:17 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()) {