mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-07 08:27:03 +03:00
properly escape path sep in tar file list regex
This commit is contained in:
parent
4b63adb0d5
commit
c73736a05f
1 changed files with 1 additions and 1 deletions
|
|
@ -29,7 +29,7 @@ class TAR
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($files) {
|
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);
|
\clearstatcache(true);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue