Browse Source

Update Core\Files

Either they changed something in PHP 8, or I'm wrong, but something is wrong with escaping :(
Visman 4 năm trước cách đây
mục cha
commit
3886708e73
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      app/Core/Files.php

+ 1 - 1
app/Core/Files.php

@@ -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 {