浏览代码

Update Core\Files

Either they changed something in PHP 8, or I'm wrong, but something is wrong with escaping :(
Visman 4 年之前
父节点
当前提交
3886708e73
共有 1 个文件被更改,包括 1 次插入1 次删除
  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 {