* Prevent non numeric values being used in limits
Potential abuse for Sql injection
Only allow integers to be used
Adjust exception
* Disable upload assets via Theme pages
File upload was removed in an earlier PR
* Make sure the test run fine
* Fix the tests
* Use limit instead of per_page
* And another fix
---------
Co-authored-by: Belle Aerni <belleaerni@gmail.com>
* Created a new API key product type
* Make the CI happy + a few minor fixes
* Improvements to the generation options
Plus generalized improvements to the config pages
* Fix my typo
* Final touches
At least, I hope they are the final touches. We will see after reviews :P
* Cleanup and minor improvements
* Minor fix
* Move to HTML email templates + add logo
* This doesn't / shouldn't return the ID anymore
It's no longer used as things were switched to the order ID
* Update the model to reflect DB changes
* Misc. cleanup + added some missing types
* Replace Box_Session and improve session handling
* Improve weights, capitalize class name correctly
* Make the tests pass, update the SQL structure
* Tweak to the fingerprint class, fix more tests
* Regenerate session IDs when logging in
* Improve readability
* Update ServiceTest.php
* Tweak weights and added Huntr badge to the readme
* Improve readability, add PHPDocs, and updated weight
* Update SECURITY.md
* Start replacing email templates with HTML ones
* Updated some more
* Spelling
* Completed some more email templates
* Completed the rest of them
* Fix spelling
* Some minor fixes + improvements
return __trans(':product_title', [':product_title' => $product->title]);
is the same as
return $product->title);
And prevent users from making mistakes
* Refactor System Updater
Refactor Box/Update to clean things up, merge related functionality, improve error checking, and move to FOSSBilling namespace.
Also refactor foss-update.php into core class, `UpdatePatcher`.
* Refactor file system actions to use Symfony Filesystem
Refactor file system actions to use Symfony Filesystem component, and declare all used resources at start of files rather than duplicating throughout.
* Implemented Monolog
* Doesn't need to look for BB_DEBUG. It won't be logged on prod anyway.
* Doesn't need to be an array
* -Box_LogStream
* Reverted squash
* Fixed a duplicate
* Type hinting
* This got lost in a merge commit
* Kind of distracted today. Good thing squash and merge exists.
* Cleaning
* Rebased composer.json & lockfile
* Enabled the check again
---------
Co-authored-by: Adam Daley <admdly@users.noreply.github.com>
In recent versions of PHP, converting from a float to an int causes deprecation warnings. This PR cleans up a situation I came across where that was happing.