From c215d8fb31aa13fcec558460d36bdaaa0c56500d Mon Sep 17 00:00:00 2001 From: Roman Kelesidis Date: Sat, 3 Aug 2024 01:19:51 +0700 Subject: [PATCH] Increased `USEREMAIL_MAX_LENGTH` (#1566) * Minor improvements * Update CHANGELOG.md --- CHANGELOG.md | 1 + README.md | 4 ---- common.php | 2 +- library/includes/init_bb.php | 2 +- 4 files changed, 3 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9d83c883b..cb05f7c3a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,7 @@ - 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)) - 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) [Full Changelog](https://github.com/torrentpier/torrentpier/compare/v2.4.3...v2.4.4) diff --git a/README.md b/README.md index f59196f31..8f66bc692 100644 --- a/README.md +++ b/README.md @@ -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, 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 * *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. diff --git a/common.php b/common.php index c75cfa9ee..0a105fbe6 100644 --- a/common.php +++ b/common.php @@ -172,7 +172,7 @@ function utime() 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)) { $msg = implode(LOG_LF, $msg); diff --git a/library/includes/init_bb.php b/library/includes/init_bb.php index 7e74b48fa..1bdf55501 100644 --- a/library/includes/init_bb.php +++ b/library/includes/init_bb.php @@ -282,7 +282,7 @@ define('SID_LENGTH', 20); define('LOGIN_KEY_LENGTH', 32); define('USERNAME_MIN_LENGTH', 3); define('USERNAME_MAX_LENGTH', 30); -define('USEREMAIL_MAX_LENGTH', 80); +define('USEREMAIL_MAX_LENGTH', 230); define('PASSWORD_MIN_LENGTH', 8); define('PASSWORD_MAX_LENGTH', 128);