Update LogViewer.php

This commit is contained in:
Jiang Qinghua 2020-07-10 12:28:24 +08:00 committed by GitHub
parent a59d1eb588
commit 2ed3d0a624
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -192,7 +192,7 @@ class LogViewer
public function isCurrentFile($file) public function isCurrentFile($file)
{ {
return $this->replaceBasePath($this->getFilePath()) === rtrim($this->currentDirectory.'/'.$file, '/'); return $this->replaceBasePath($this->getFilePath()) === trim($this->currentDirectory.'/'.$file, '/');
} }
/** /**