Update LogViewer.php
This commit is contained in:
parent
eb0d72ffc8
commit
313a1c5c8e
@ -81,6 +81,7 @@ class LogViewer
|
|||||||
|
|
||||||
protected function getRealPath($path)
|
protected function getRealPath($path)
|
||||||
{
|
{
|
||||||
|
try {
|
||||||
$paths = explode('/', $path);
|
$paths = explode('/', $path);
|
||||||
|
|
||||||
$result = '';
|
$result = '';
|
||||||
@ -94,6 +95,9 @@ class LogViewer
|
|||||||
}
|
}
|
||||||
|
|
||||||
return rtrim($result, '/');
|
return rtrim($result, '/');
|
||||||
|
} catch (\Throwable $e) {
|
||||||
|
return $path;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function formatPath($path)
|
protected function formatPath($path)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user