mirror of
https://github.com/the-djmaze/snappymail.git
synced 2024-11-10 09:02:45 +08:00
Simple solution for #1562
This commit is contained in:
parent
0c081cf9aa
commit
f9b5a37555
1 changed files with 1 additions and 1 deletions
|
@ -29,7 +29,7 @@ class TAR
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($files) {
|
if ($files) {
|
||||||
$files = '/^(' . \implode('|', \array_map(fn($x): string => preg_quote($x, '/'), \is_array($files) ? $files : [$files])) . ')/u';
|
$files = '#^(' . \implode('|', \array_map('preg_quote', \is_array($files) ? $files : [$files])) . ')#u';
|
||||||
}
|
}
|
||||||
|
|
||||||
\clearstatcache(true);
|
\clearstatcache(true);
|
||||||
|
|
Loading…
Reference in a new issue