Increased USEREMAIL_MAX_LENGTH (#1566)

* Minor improvements

* Update CHANGELOG.md
This commit is contained in:
Roman Kelesidis 2024-08-03 01:19:51 +07:00 committed by GitHub
commit c215d8fb31
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 3 additions and 6 deletions

View file

@ -8,6 +8,7 @@
- Release 2.4.5 🦕 ([belomaxorka](https://github.com/belomaxorka)) - Release 2.4.5 🦕 ([belomaxorka](https://github.com/belomaxorka))
- Added some new HTML meta-tags [\#1562](https://github.com/torrentpier/torrentpier/pull/1562) ([belomaxorka](https://github.com/belomaxorka)) - Added some new HTML meta-tags [\#1562](https://github.com/torrentpier/torrentpier/pull/1562) ([belomaxorka](https://github.com/belomaxorka))
- Fixed `md5()` deprecated in PHP 8.4 [\#1561](https://github.com/torrentpier/torrentpier/pull/1561) ([belomaxorka](https://github.com/belomaxorka)) - Fixed `md5()` deprecated in PHP 8.4 [\#1561](https://github.com/torrentpier/torrentpier/pull/1561) ([belomaxorka](https://github.com/belomaxorka))
- Increased `USEREMAIL_MAX_LENGTH` [\#1566](https://github.com/torrentpier/torrentpier/pull/1566) ([belomaxorka](https://github.com/belomaxorka))
## [v2.4.4](https://github.com/torrentpier/torrentpier/tree/v2.4.4) (2024-07-22) ## [v2.4.4](https://github.com/torrentpier/torrentpier/tree/v2.4.4) (2024-07-22)
[Full Changelog](https://github.com/torrentpier/torrentpier/compare/v2.4.3...v2.4.4) [Full Changelog](https://github.com/torrentpier/torrentpier/compare/v2.4.3...v2.4.4)

View file

@ -90,10 +90,6 @@ You must provide write permissions to the specified folders:
The specific settings depend on the server you are using, but in general case we recommend chmod **0755** for folders, The specific settings depend on the server you are using, but in general case we recommend chmod **0755** for folders,
and chmod **0644** for files in them. If you are not sure, leave it as is. and chmod **0644** for files in them. If you are not sure, leave it as is.
## 🔐 Security
If you discover any security related issues, please email [admin@torrentpier.com](mailto:admin@torrentpier.com) or [roman25052006.kelesh@gmail.com](mailto:roman25052006.kelesh@gmail.com) instead of using the issue tracker.
## 📌 Our recommendations ## 📌 Our recommendations
* *The recommended way to run cron.php.* - For significant tracker speed increase may be required to replace built-in cron.php by operating system daemon. * *The recommended way to run cron.php.* - For significant tracker speed increase may be required to replace built-in cron.php by operating system daemon.

View file

@ -172,7 +172,7 @@ function utime()
return array_sum(explode(' ', microtime())); return array_sum(explode(' ', microtime()));
} }
function bb_log($msg, $file_name, $return_path = false) function bb_log($msg, $file_name = 'logs.log', $return_path = false)
{ {
if (is_array($msg)) { if (is_array($msg)) {
$msg = implode(LOG_LF, $msg); $msg = implode(LOG_LF, $msg);

View file

@ -282,7 +282,7 @@ define('SID_LENGTH', 20);
define('LOGIN_KEY_LENGTH', 32); define('LOGIN_KEY_LENGTH', 32);
define('USERNAME_MIN_LENGTH', 3); define('USERNAME_MIN_LENGTH', 3);
define('USERNAME_MAX_LENGTH', 30); define('USERNAME_MAX_LENGTH', 30);
define('USEREMAIL_MAX_LENGTH', 80); define('USEREMAIL_MAX_LENGTH', 230);
define('PASSWORD_MIN_LENGTH', 8); define('PASSWORD_MIN_LENGTH', 8);
define('PASSWORD_MAX_LENGTH', 128); define('PASSWORD_MAX_LENGTH', 128);