Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Xavier Bachelot
lemonldap-ng
Commits
5a03e518
Commit
5a03e518
authored
Jan 30, 2019
by
Christophe Maudoux
Browse files
Delete SSO cookie with Nginx (#1630)
parent
72daca2f
Changes
1
Hide whitespace changes
Inline
Side-by-side
lemonldap-ng-handler/lib/Lemonldap/NG/Handler/Server/Nginx.pm
View file @
5a03e518
...
...
@@ -67,6 +67,9 @@ sub handler {
my
(
$self
,
$req
)
=
@_
;
my
$hdrs
=
$req
->
{
respHeaders
};
$req
->
{
respHeaders
}
=
[]
;
my
$cookie
=
$req
->
env
->
{
HTTP_COOKIE
};
my
$cn
=
$self
->
Lemonldap::NG::Handler::Main::
tsv
->
{
cookieName
};
$cookie
=~
s/\b$cn(http)?=[^,;]*[,;\s]*//og
;
my
@convertedHdrs
=
(
'
Content-Length
'
=>
0
,
Cookie
=>
(
$req
->
env
->
{
HTTP_COOKIE
}
//
''
)
);
my
$i
=
0
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment