8000 Fix deleting cookies by jonasdekeukelaere · Pull Request #3440 · forkcms/forkcms · GitHub
[go: up one dir, main page]

Skip to content

Fix deleting cookies#3440

Merged
carakas merged 2 commits intoforkcms:masterfrom
jonasdekeukelaere:fix-deleting-cookies
Aug 2, 2021
Merged

Fix deleting cookies#3440
carakas merged 2 commits intoforkcms:masterfrom
jonasdekeukelaere:fix-deleting-cookies

Conversation

@jonasdekeukelaere
Copy link
Member
@jonasdekeukelaere jonasdekeukelaere commented Aug 2, 2021

Type

  • Critical bugfix

Pull request description

When deleting cookies, the current code adds a cookie with 1s expire time, but the next line removes this cookie again. Swapping those lines fixes this issue.

Note: there is also another issue that the deleting of cookie on RedirectResponse (Logout) is not persisted. But the Authentication has a backup check where it gets deleted in a "normal" fork action, which works.

@codecov
Copy link
codecov bot commented Aug 2, 2021

Codecov Report

Merging #3440 (095b85b) into master (4b60c18) will not change coverage.
The diff coverage is 0.00%.

Impacted file tree graph

@@            Coverage Diff            @@
##             master    #3440   +/-   ##
=========================================
  Coverage     27.61%   27.61%           
  Complexity     8115     8115           
=========================================
  Files           572      572           
  Lines         30975    30975           
=========================================
  Hits           8553     8553           
  Misses        22422    22422           
Flag Coverage Δ
functional 23.60% <0.00%> (ø)
installer 3.81% <0.00%> (ø)
unit 7.55% <0.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
src/Common/Core/Cookie.php 64.28% <0.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 4b60c18...095b85b. Read the comment docs.

@carakas carakas merged commit 4609bb1 into forkcms:master Aug 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

0