소스 검색

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 {