summaryrefslogtreecommitdiffstats
path: root/enter_bug.cgi
diff options
context:
space:
mode:
authormyk%mozilla.org <>2002-04-25 06:28:36 +0200
committermyk%mozilla.org <>2002-04-25 06:28:36 +0200
commit924bcd7fdb6d6a6eb6e4601f5f0ea7b486c061d4 (patch)
tree6ec38eb4b6f3c73c86092c750c57db8d34530800 /enter_bug.cgi
parent07e523a842a471543df1420dbb479063b4fba372 (diff)
downloadbugzilla-924bcd7fdb6d6a6eb6e4601f5f0ea7b486c061d4.tar.gz
bugzilla-924bcd7fdb6d6a6eb6e4601f5f0ea7b486c061d4.tar.xz
Fix for bug 139632: connect to the database in enter_bug.cgi in case it is time to rebuild the version cache, which needs a database
connection. Patch by Myk Melez <myk@mozilla.org>. 2xr=gerv
Diffstat (limited to 'enter_bug.cgi')
-rwxr-xr-xenter_bug.cgi5
1 files changed, 5 insertions, 0 deletions
diff --git a/enter_bug.cgi b/enter_bug.cgi
index dce3dd4ac..f2836a5fa 100755
--- a/enter_bug.cgi
+++ b/enter_bug.cgi
@@ -53,6 +53,11 @@ use vars qw(
%versions
);
+# We have to connect to the database, even though we don't use it in this code,
+# because we might occasionally rebuild the version cache, which causes tokens
+# to get deleted from the database, which needs a database connection.
+ConnectToDatabase();
+
# If we're using bug groups to restrict bug entry, we need to know who the
# user is right from the start.
confirm_login() if (Param("usebuggroupsentry"));