summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjustdave%syndicomm.com <>2001-06-21 11:02:30 +0200
committerjustdave%syndicomm.com <>2001-06-21 11:02:30 +0200
commit00fc4b6a708775539cb62c5dd781cbc6f0f87b3e (patch)
treece76f2f77bbfda9b8db1d874b416c18784affa41
parentcb68c84bcb213c3c109a54e1728b8c2434171c27 (diff)
downloadbugzilla-00fc4b6a708775539cb62c5dd781cbc6f0f87b3e.tar.gz
bugzilla-00fc4b6a708775539cb62c5dd781cbc6f0f87b3e.tar.xz
Fix for bug 47914: buglist.cgi always had a not-logged-in footer if you were unlucky enough to have a login cookie that got corrupted in the shadow database. This patch makes buglist.cgi switch back to the primary database before looking up your login cookie for the footer.
Patch by Myk Melez <myk@mozilla.org> r= justdave@syndicomm.com
-rwxr-xr-xbuglist.cgi6
1 files changed, 6 insertions, 0 deletions
diff --git a/buglist.cgi b/buglist.cgi
index 206b968ca..98bb93484 100755
--- a/buglist.cgi
+++ b/buglist.cgi
@@ -1588,6 +1588,12 @@ if ($count > 0) {
print "</FORM>\n";
}
+# 2001-06-20, myk@mozilla.org, bug 47914:
+# Switch back from the shadow database to the regular database
+# so that PutFooter() can determine the current user even if
+# the "logincookies" table is corrupted in the shadow database.
+SendSQL("USE $::db_name");
+
PutFooter();
if ($serverpush) {