瀏覽代碼

Exclude all php:// prefixed URLs for inode chekcs

Jordi Boggiano 2 月之前
父節點
當前提交
24816d98c6
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/Monolog/Handler/StreamHandler.php

+ 1 - 1
src/Monolog/Handler/StreamHandler.php

@@ -258,7 +258,7 @@ class StreamHandler extends AbstractProcessingHandler
 
     private function getInodeFromUrl(): ?int
     {
-        if ($this->url === null || $this->url === 'php://memory') {
+        if ($this->url === null || str_starts_with($this->url, 'php://')) {
             return null;
         }