Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
fix deleteCookie expire parameter #7865
The setCookie function expects a relative expirational date in seconds and does the math (time() + X) on itself.
Please be sure you are submitting this against the staging branch.
Steps to reproduce the bug:
Steps to test this PR:
List deprecations along with the new alternative:
List backwards compatibility breaks:
The setCookie function expects a relative expirational date in seconds and does the math (time() + X) on itself. The deleteCookie function should not pass "time() - 3600", but a negative number and let setCookie do the math
This pull request has been mentioned on Mautic Community Forums. There might be relevant details there: