Commit Graph
24 Commits
Author SHA1 Message Date
Belle Aerni 4379beb74c Created config option to disable auto cron 2022-10-28 10:03:41 -07:00
Belle Aerni 4d9fde7b04 Fix validateAndSanitizeEmail for international domains (#386)
* Fix validateAndSanitizeEmail for international

And write tests to prove it works as intended

* Update FOSS_Tools.php

* Update tests

* Update FOSS_ToolsTest.php

* This should fix it

* Disabled test

* Require intl polyfill
2022-10-26 22:31:40 +02:00
Belle Aerni ea30d5b160 Validate Emails Addresses & Other Security Tweaks(#385)
* Use generatePassword rather than a shortened hash

* Tweak how cron credentials are created

* Use the standard PHP function to validate emails

* Validate and sanitize emails

* Fix typos

* Use idn_to_ascii when validating emails

* Only use idn_to_ascii when validating the email

* Fix tests

* More text fixing

* We should only have one more failure now

* sighs

* Disable that since it's failing for no reason
2022-10-25 02:09:33 -07:00
Belle Aerni 7f5aa45a46 Migrate config during the update process (#384) 2022-10-24 22:11:03 +02:00
Belle Aerni f7abf20039 Adjust Password Requirements (#369)
* Increase password requirements & check them more

* This should fix tests

* Actually fix tests
2022-10-22 08:46:00 +02:00
Belle Aerni 557a5dcbf2 Miscellaneous Changes (#368)
* Corrected "powered by" link in admin panel

* Fix changing the admin theme

https://github.com/boxbilling/boxbilling/pull/1346

* Avoid strtolower(): Passing null to parameter #1 ($string) of type string is deprecated

* Also use isset

* Avoid json_decode(): Passing null to parameter #1 ($json) of type string is deprecated
2022-10-20 22:12:02 +02:00
Belle Aerni c24c856062 Use the cryptographically secure random_int() (#362)
* Replace rand() with random_int()

* Replace mt_rand() with random_int()

* Whoops
2022-10-18 20:32:13 -07:00
S4 Hosting b5427fdd46 Copyright and license notices changed to correctly comply with Apache 2.0 2022-05-31 14:51:44 +03:00
Yağızhan ee20efa179 Dropped Box_Tools->getIpv4 2021-10-27 22:01:59 +03:00
Yağızhan 586525ec5b Make Box_Tools use our custom user agent 2021-10-25 00:07:42 +03:00
Yağızhan ede9ac58e8 Fix file_get_contents offset 2021-10-08 21:03:16 +03:00
Benjamin Aerni 6cc85ddbbc Fix copyright URL (#1018)
* Update copyright URL to https://www.boxbilling.org

* I don't know the exact copyright of this file, but we definitely don't own it
2021-08-30 19:20:13 -07:00
Benjamin Aerni 91f914ab2c Wave of code cleanup / formatting
* Some code cleanup

* More code cleanup / formatting

Now I'm gonna go to bed

* Fix typo

This is why we have tests

* Cleanup literal booleans

* Some more general code cleanup

* Github's GUI for merge conflicts is not very clear..

* Update PDF_ImageAlpha.php

* Revert potentially behavior changing changes that aren't tested
2021-08-25 10:35:00 -07:00
Benjamin AerniandYağızhan 8f842fb400 Fix our updater and use GitHub releases (#991)
* Updater works until the unzip process

* Use modern zip library

* Re-enable the json cache

* Simplifying

* Fix merge conflict

Co-authored-by: Yağızhan <yagizhan49@protonmail.com>
2021-08-24 05:49:16 -07:00
Yağızhan 2135c3e1a5 Re-implemented Gravatar 2021-08-22 15:16:51 +03:00
evrifaessa 37df3e5037 Updated user agent 2021-08-12 14:18:31 +03:00
samapraku 833ad2b5c9 Upgrade from mcrypt to openssl for PHP 7.2 2020-07-21 02:06:55 +02:00
Vaidas Lungis e7b12103dc fix scrutinizer issues 2015-03-16 17:05:38 +02:00
4Giedrius f2d76cdedf Declared $passOrder 2014-12-09 10:59:20 +02:00
4Giedrius 20a965a914 Fixed $di of type object<Box_Di>, but the function expects a null 2014-12-09 10:15:13 +02:00
Giedrius 99641300ea Merge pull request #200 from 4Giedrius/develop
Code fixes
2014-12-08 17:28:21 +02:00
4Giedrius 3ce2612f01 The 'and', 'or' operators does not have the same precedence as && and ||. This could lead to unexpected behavior 2014-12-08 13:12:34 +02:00
4Giedrius 65f7947795 Added getPairsForTableByIds() method to Box_Tools 2014-11-14 12:06:40 +02:00
fordnox 5af4cc20d9 Initial release 2014-11-03 09:00:47 +02:00