mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-14 18:48:21 -07:00
Incorrect logfile rotation regex.
This commit is contained in:
parent
670a46d9b0
commit
daeeb031e4
2 changed files with 2 additions and 2 deletions
|
@ -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];
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue