Subject: Developers of Sympa
List archive
- From: Olivier Salaun - CRU <address@concealed>
- To: address@concealed
- Subject: [sympa-dev] Bug in sympa 2.5.4b
- Date: Tue, 28 Mar 2000 14:18:45 +0200
To those who had a try with sympa 2.5.4b :
WWSympa now prints dates (eg subscribing date) in the user's
language format. The same function, POSIX::strftime(), prepares
the expiration date of HTTP cookies which is - if not in english -
not recognized by the HTTP client. Users'sessions therefore
automatically expire.
This will be corrected in the release ; in the meanwhile, here
is a patch :
Olivier Salaun
*** wws-lib.pl.orig Fri Mar 17 11:47:48 2000
--- wws-lib.pl Tue Mar 28 14:02:26 2000
***************
*** 319,325 ****
my $user = &List::get_user_db($email);
$delay = $user->{'cookie_delay'} || $wwsconf->{'cookie_expire'};
! return &POSIX::strftime("%A, %d-%b-%Y %H:%M:%S GMT", gmtime(time + (60
* $delay) ));
}
## returns Message Authentication Check code
--- 319,334 ----
my $user = &List::get_user_db($email);
$delay = $user->{'cookie_delay'} || $wwsconf->{'cookie_expire'};
! ## Keep locale and set it to
! my $locale = $ENV{'LC_ALL'};
! &POSIX::setlocale(&POSIX::LC_ALL, 'C');
!
! my $date = &POSIX::strftime("%A, %d-%b-%Y %H:%M:%S GMT", gmtime(time +
(60 * $delay) ));
!
! ## Restore locale
! &POSIX::setlocale(&POSIX::LC_ALL, $locale);
!
! return $date;
}
- [sympa-dev] Bug in sympa 2.5.4b, Olivier Salaun - CRU, 03/28/2000
Archive powered by MHonArc 2.6.19+.