Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
Mar 23, 2024

Conversation

halfgaar
Copy link
Contributor

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.

Copy link
Member

@d00p d00p left a comment

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
Copy link
Contributor Author

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

@d00p d00p merged commit 7c3e89c into froxlor:main Mar 23, 2024
9 checks passed
@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