summaryrefslogtreecommitdiffstats
path: root/application
AgeCommit message (Collapse)AuthorFilesLines
2024-04-14Merge branch 'feature/systemd-service-lexer' of ↵Florian Pritz1-0/+1
https://github.com/hashworks/filebin into dev
2024-04-14fix(duser_db): Guard against NULL valuesFlorian Pritz1-0/+12
When a user is deleted, their details are set to NULL. When no username is specific for a password reset, this can trigger an email being sent to an empty recipient which will not be deliverable. Just to be safe, guard against NULL values for all the user related functions. Signed-off-by: Florian Pritz <bluewind@xinu.at>
2024-02-24Use systemd lexer for systemd .service file mimetypeshashworks1-0/+1
Uploading systemd foo.service files results in the application/x-wine-extension-ini mimetype, which triggers a download on various browsers. This fixes that and displays them using the systemd lexer instead.
2024-01-14feat(PHP8.3): Fix assert_options deprecation warningsFlorian Pritz1-8/+0
All current asserations are only for development/debug related checks and safe to disable on production so we do not need to force any settings via the deprecate `assert_options` function here and we can just remove this code. Signed-off-by: Florian Pritz <bluewind@xinu.at>
2023-01-29feat(PHP8.2): Fix dynamic properties deprecation warningsFlorian Pritz1-0/+3
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2023-01-29fix: Remove double CSRF checkingFlorian Pritz1-1/+0
The second verification (by us) fails. The constructor already performs a verification so we do not need to. Signed-off-by: Florian Pritz <bluewind@xinu.at>
2023-01-29fix: Add missing parameter for CSRF security class constructorFlorian Pritz1-1/+1
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2023-01-29feat(PHP8.2): Fix dynamic properties deprecation warningsFlorian Pritz5-0/+12
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2023-01-29fix: Remove call to non-existant Model constructorFlorian Pritz3-4/+0
This has been removed in the recently merged changes from CI upstream. Signed-off-by: Florian Pritz <bluewind@xinu.at>
2023-01-29feat(PHP8.2): Fix deprecated string interpolationFlorian Pritz8-18/+18
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2023-01-29Merge remote-tracking branch 'upstream/develop' into devFlorian Pritz26-245/+143
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2022-07-10docs: Update Android client repo URLFlorian Pritz1-1/+1
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2022-04-10fix(multipaste): Handle missing items in multipaste queueFlorian Pritz1-0/+5
This fixes an exception if the multipaste queue contains an item that does not exist any more, e.g. because it has been deleted after it was added to the queue. `Exception 1/1 'ErrorException' with message 'Trying to access array offset on value of type bool' in /srv/http/filebin/application/controllers/file/Multipaste.php:103` Signed-off-by: Florian Pritz <bluewind@xinu.at>
2022-04-10feat(PHP8.1): Fix float to int conversion precision lossFlorian Pritz1-2/+2
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2022-04-10feat(PHP8.1): Add null-checksFlorian Pritz3-3/+3
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2022-04-10feat(PHP8.1)!: Fix deprecated null argumentsFlorian Pritz1-1/+1
BREAKING CHANGE: Syntax raises minimal PHP version to 7.0 Signed-off-by: Florian Pritz <bluewind@xinu.at>
2022-01-09Merge remote-tracking branch 'upstream/3.1-stable' into devFlorian Pritz2-4/+11
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2022-01-05Drop option to disable Query BuilderAndrey Andreev1-5/+0
I don't know if it has ever worked properly, too much things break if you do try to disable it.
2022-01-05Polish changes from PR #5684 and drop ['log_file_extension']; ref #5648Andrey Andreev1-16/+2
2022-01-05Merge pull request #5684 from jonsmith1982/developAndrey Andreev1-0/+11
partially fixes #5648
2022-01-05Merge branch '3.1-stable' into developAndrey Andreev1-2/+2
2022-01-05[ci skip] Another minor grammar correction following #5690Andrey Andreev1-2/+2
2022-01-05[ci skip] Merge pull request #5690 from Lohith94/developAndrey Andreev1-3/+3
Corrected some grammar
2022-01-05[ci skip] Merge pull request #5690 from Lohith94/developAndrey Andreev1-3/+3
Corrected some grammar
2022-01-05Merge branch '3.1-stable' into developAndrey Andreev1-0/+5
2022-01-05Add SameSite cookie support to Session libraryAndrey Andreev1-0/+5
2022-01-05Merge pull request #6025 from gxgpet/developAndrey Andreev1-0/+2
SameSite attribute implementation for CI_Input::set_cookie
2022-01-05Merge pull request #6025 from gxgpet/developAndrey Andreev1-0/+2
SameSite attribute implementation for CI_Input::set_cookie
2021-12-20[ci skip] Merge pull request #6071 from ddonatek/patch-1George Petculescu1-1/+1
Added another SVG mimetype
2021-11-02Added another SVG mimetypeddonatek1-1/+1
Some MIME detection programs/libraries identify SVG files without `<?xml ...?>` declaration as `image/svg`
2021-04-11Copy filename when repasting fileFlorian Pritz2-1/+2
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2021-04-11Add links to new android clientFlorian Pritz1-0/+6
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2021-03-14Dropping the possibility that samesite cookie attribute won't be sent; ↵George Petculescu1-1/+1
defaults to Lax; all samesite values are ucfirst'ed; log for SameSite=None non-secure cookies
2021-02-28Initial implementation of samesite for CI_Input::set_cookieGeorge Petculescu1-0/+2
2021-02-21Pygments: Add json and crystal filename extensionsFlorian Pritz1-0/+2
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2021-02-21PHP8: Fix expected error string in test_libraries_procrunnerFlorian Pritz1-1/+5
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2021-02-21PHP8: Fix generation of code coverage reportFlorian Pritz1-1/+4
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2021-02-21PHP8: Fix testsuite compatibilityFlorian Pritz1-0/+0
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2021-02-21PHP8: Merge remote-tracking branch 'upstream/3.1-stable' into devFlorian Pritz8-12/+22
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2020-10-07API: Update API version to 2.2.0Florian Pritz1-1/+1
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2020-10-07API: Only consider public methods as API endpointsFlorian Pritz1-1/+1
We are not only interested in checking if a method exists here, but really also if it can be called (e.g. if it is public). Private methods should not be considered as potential API endpoints. Before this, private methods could be called, leading to a 500 error due to a call to the private method. Signed-off-by: Florian Pritz <bluewind@xinu.at>
2020-10-07API: Add `minimum-id-length` post parameterSimon Schuster3-2/+82
This parameter controls the generated id for files (file/upload) and multipastes (file/create_multipaste). The post parameter has to be a positive integer value >= 2. Changes by Florian Pritz: - minor style and typo fixes - NEWS entry - check expected error reply content in tests Signed-off-by: Florian Pritz <bluewind@xinu.at>
2020-07-09[ci skip] Merge pull request #5970 from sapics/fix/user-guide-urlAndrey Andreev8-11/+13
Fix user guide url
2020-07-09[ci skip] Merge pull request #5970 from sapics/fix/user-guide-urlAndrey Andreev6-9/+9
Fix user guide url
2020-07-09[ci skip] Merge pull request #5922 from robsonpiere/developAndrey Andreev1-1/+2
Add UptimeRobot user agent
2020-07-09[ci skip] Merge pull request #5922 from robsonpiere/developAndrey Andreev1-1/+2
Add UptimeRobot user agent
2020-06-24Fix user guide urlsapics6-9/+9
Replace from https://codeigniter.com/user_guide/* to https://codeigniter.com/userguide3/*
2020-04-19Reclassify various exceptions as InsufficientPermissionsExceptionFlorian Pritz2-2/+2
That way they get the correct HTTP status code and they also get ignored by the logging code. Signed-off-by: Florian Pritz <bluewind@xinu.at>
2020-04-19Reclassify various exceptions as UserInputExceptionFlorian Pritz4-15/+15
These are errors that a user can correct themselves so we should classify them accordingly. That way they get the correct HTTP status code and they also get ignored by the logging code. Signed-off-by: Florian Pritz <bluewind@xinu.at>
2020-03-30[ci skip] Merge pull request #5918 from wobility/patch-1Andrey Andreev1-0/+2
Update with heic format