[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: gnatsweb and cookies
From: |
Michael Richardson |
Subject: |
Re: gnatsweb and cookies |
Date: |
Thu, 21 Mar 2002 16:50:59 -0600 |
>>>>> "Gerald" == Gerald Pfeifer <address@hidden> writes:
Gerald> Actually, it seems surprisingly simple. ;-) Below you'll find a
Gerald> patch due
Gerald> to Jason Molenda (CC:ed) which we have been using on gcc.gnu.org;
Gerald> some-
Gerald> thing similiar for use with current GNATS/gnatsweb should be
Gerald> relatively
Gerald> simple, I guess.
I had to move stuff a bit, and I had to force the database if not set
(I think you have a patch above to do that), resulting in.
Note that this actually breaks all logins - the logout button would remove
the cookies, but that puts me back to the view stuff. That's okay, I wanted
read only access anyway.
adams-[/usr/local/src/gnatsweb] mcr 1024 %cvs diff -u gnatsweb.pl
Index: gnatsweb.pl
===================================================================
RCS file: /cvsroot/gnatsweb/gnatsweb/gnatsweb.pl,v
retrieving revision 1.93
diff -u -r1.93 gnatsweb.pl
--- gnatsweb.pl 23 Feb 2002 04:11:13 -0000 1.93
+++ gnatsweb.pl 21 Mar 2002 22:49:18 -0000
@@ -4129,6 +4129,17 @@
### Cookie-related code must happen before we print the HTML header.
init_prefs();
+ if(!$global_prefs{'database'}) {
+ $global_prefs{'database'}="freeswan";
+ }
+
+ #GCC-LOCAL begin: No username/pass provided? Default to guest/guest
+ if (!$db_prefs{'user'} || !$db_prefs{'password'}) {
+ $db_prefs{'user'} = "view";
+ $db_prefs{'password'} = "view";
+ }
+ #GCC-LOCAL end.
+
if(!$global_prefs{'database'}
|| !$db_prefs{'user'} || !$db_prefs{'password'})
{
@@ -4138,6 +4149,7 @@
login_page($q->self_url());
exit();
}
+
# Big old switch to handle commands.
if($cmd eq 'store query')
] ON HUMILITY: to err is human. To moo, bovine. | firewalls [
] Michael Richardson, Sandelman Software Works, Ottawa, ON |net architect[
] address@hidden http://www.sandelman.ottawa.on.ca/ |device driver[
] panic("Just another NetBSD/notebook using, kernel hacking, security guy"); [