From 2ed3d0a62418fed6529706804b256385a0883516 Mon Sep 17 00:00:00 2001 From: Jiang Qinghua <841324345@qq.com> Date: Fri, 10 Jul 2020 12:28:24 +0800 Subject: [PATCH] Update LogViewer.php --- src/LogViewer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/LogViewer.php b/src/LogViewer.php index c8682a6..4015e82 100644 --- a/src/LogViewer.php +++ b/src/LogViewer.php @@ -192,7 +192,7 @@ class LogViewer public function isCurrentFile($file) { - return $this->replaceBasePath($this->getFilePath()) === rtrim($this->currentDirectory.'/'.$file, '/'); + return $this->replaceBasePath($this->getFilePath()) === trim($this->currentDirectory.'/'.$file, '/'); } /**