Update Core\Files

Either they changed something in PHP 8, or I'm wrong, but something is wrong with escaping :(
This commit is contained in:
Visman 2021-02-21 23:01:15 +07:00
parent 2827aace31
commit 3886708e73

View file

@ -1029,7 +1029,7 @@ class Files
return null;
}
if (\preg_match('%^(.+)\.([^.\\/]++)$%D', $file['name'], $matches)) {
if (\preg_match('%^(.+)\.([^.\\\/]++)$%D', $file['name'], $matches)) {
$name = $matches[1];
$ext = $matches[2];
} else {