Skip to content

Fix "expires" option cannot have a year greater than 9999#1246

Merged
d00p merged 1 commit into
froxlor:mainfrom
halfgaar:fix-expires-after-9999
Mar 23, 2024
Merged

Fix "expires" option cannot have a year greater than 9999#1246
d00p merged 1 commit into
froxlor:mainfrom
halfgaar:fix-expires-after-9999

Conversation

@halfgaar

Copy link
Copy Markdown

This fixes the exception: '"expires" option cannot have a year greater than 9999', which happens on upgrade from Debian 11 to 12. The session timeout in the DB is 9999999999999, so we constrain the value.

@d00p d00p left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

additonally, wouldn't it be wise to restrict entering values like 999999999999 to the field by adding a max = '31536000', to the config array in https://github.com/froxlor/Froxlor/blob/main/actions/admin/settings/110.accounts.php#L37

This fixes the exception: '"expires" option cannot have a year greater
than 9999', which happens on upgrade from Debian 11 to 12. The session
timeout in the DB is 9999999999999, so we constrain the value.
@halfgaar
halfgaar force-pushed the fix-expires-after-9999 branch from d0adc81 to f525fed Compare March 23, 2024 13:27
@halfgaar

Copy link
Copy Markdown
Author

Alright, amended the commit and pushed --force-with-lease over it.

@d00p
d00p merged commit 7c3e89c into froxlor:main Mar 23, 2024
@halfgaar
halfgaar deleted the fix-expires-after-9999 branch March 23, 2024 14:20
d00p pushed a commit that referenced this pull request Mar 27, 2024
This fixes the exception: '"expires" option cannot have a year greater
than 9999', which happens on upgrade from Debian 11 to 12. The session
timeout in the DB is 9999999999999, so we constrain the value.
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.

2 participants