mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-08 22:18:28 +03:00
Merge pull request #1562 from sevmonster/patch-1
Properly escape path separator in `tar.php` file list regex
This commit is contained in:
commit
0c081cf9aa
1 changed files with 1 additions and 1 deletions
|
|
@ -29,7 +29,7 @@ class TAR
|
|||
}
|
||||
|
||||
if ($files) {
|
||||
$files = '/^(' . \implode('|', \array_map('preg_quote', \is_array($files) ? $files : [$files])) . ')/u';
|
||||
$files = '/^(' . \implode('|', \array_map(fn($x): string => preg_quote($x, '/'), \is_array($files) ? $files : [$files])) . ')/u';
|
||||
}
|
||||
|
||||
\clearstatcache(true);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue