Skip to content

Commit

Permalink
Incorrect log file rotation regex (#28)
Browse files Browse the repository at this point in the history
  • Loading branch information
belomaxorka committed Mar 22, 2023
1 parent 6702db2 commit 816f5b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common.php
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ function file_write ($str, $file, $max_size = LOG_MAX_SIZE, $lock = true, $repla
if ($max_size && @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];
}
Expand Down

0 comments on commit 816f5b1

Please sign in to comment.