Simple solution for #1562

This commit is contained in:
the-djmaze 2024-04-28 14:46:37 +02:00
parent 0c081cf9aa
commit f9b5a37555

View file

@ -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);