Incorrect logfile rotation regex.

This commit is contained in:
Yuriy Pikhtarev 2017-07-29 09:14:08 +03:00
commit daeeb031e4
No known key found for this signature in database
GPG key ID: 3A9B5A757B48ECC6
2 changed files with 2 additions and 2 deletions

View file

@ -263,7 +263,7 @@ function file_write($str, $file, $max_size = LOG_MAX_SIZE, $lock = true, $replac
if ($max_size && file_exists($file) && filesize($file) >= $max_size) {
$old_name = $file;
$ext = '';
if (preg_match('#^(.+)(\.[^\\/]+)$#', $file, $matches)) {
if (preg_match('#^(.+)(\.[^\\\/]+)$#', $file, $matches)) {
$old_name = $matches[1];
$ext = $matches[2];
}

View file

@ -29,7 +29,7 @@ if (!defined('BB_ROOT')) {
$domain_name = 'torrentpier.com'; // enter here your primary domain name of your site
$domain_name = (!empty($_SERVER['SERVER_NAME'])) ? $_SERVER['SERVER_NAME'] : $domain_name;
$domain_ssl = true;
$domain_ssl = false;
$bb_cfg = [];