Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F58936493
3004-cookies.patch
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
3004-cookies.patch
View Options
--- /usr/lib/cgi-bin/sympa/wwsympa.fcgi.orig 2011-05-17 08:26:54.000000000 +0200
+++ /usr/lib/cgi-bin/sympa/wwsympa.fcgi 2011-05-17 02:20:37.000000000 +0200
@@ -1023,7 +1023,9 @@
## In case HTTP_HOST does not match cookie_domain
my $http_host = &get_header_field('HTTP_HOST');
$http_host =~ s/:\d+$//; ## suppress port
- unless (($http_host =~ /$param->{'cookie_domain'}$/) ||
+ my $cookie_host = $param->{'cookie_domain'};
+ $cookie_host =~ s/^\.//; ## suppress leading dot
+ unless (($http_host =~ /$param->{'cookie_domain'}$/) || ($http_host eq $cookie_host) ||
($param->{'cookie_domain'} eq 'localhost')) {
&wwslog('notice', 'Cookie_domain(%s) does NOT match HTTP_HOST; setting cookie_domain to %s', $param->{'cookie_domain'}, $http_host);
$param->{'cookie_domain'} = $http_host;
--- /usr/share/sympa/lib/SympaTransport.pm.orig 2014-08-18 21:48:03.928067282 -0700
+++ /usr/share/sympa/lib/SympaTransport.pm 2014-08-18 21:48:41.772254941 -0700
@@ -78,7 +78,7 @@
$main::param->{'user'}{'cookie_delay'} ||
$main::wwsconf->{'cookie_expire'};
my $cookie = SympaSession::soap_cookie2(
- $ENV{'SESSION_ID'}, $ENV{'SERVER_NAME'}, $expire
+ $ENV{'SESSION_ID'}, $main::param->{'cookie_domain'}, $expire
);
$response->headers->push_header('Set-Cookie2' => $cookie);
}
File Metadata
Details
Attached
Mime Type
text/x-diff
Expires
Sun, Dec 6, 06:39 (1 d, 17 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
4301056
Default Alt Text
3004-cookies.patch (1 KB)
Attached To
Mode
rSYMPA Sympa Docker container
Attached
Detach File
Event Timeline
Log In to Comment