mirror of
https://github.com/YunoHost/SSOwat.git
synced 2024-09-03 20:06:27 +02:00
[fix] Prevent adding the same cookie again and again.
This commit is contained in:
parent
06be1fa65a
commit
b9b6d09769
1 changed files with 3 additions and 1 deletions
|
@ -49,7 +49,9 @@ end
|
||||||
|
|
||||||
-- Set a cookie
|
-- Set a cookie
|
||||||
function cook (cookie_str)
|
function cook (cookie_str)
|
||||||
table.insert(cookies, cookie_str)
|
if not is_in_table(cookies, cookie_str) then
|
||||||
|
table.insert(cookies, cookie_str)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue