We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9225922 commit 5437cb3Copy full SHA for 5437cb3
src/Traits/LogReaderControllerTrait.php
@@ -54,7 +54,7 @@ public function tail()
54
{
55
$this->checkIsEnable();
56
$file = $this->getPathFromRequest();
57
- $line = $this->getRequest()->get('line', $this->getLogReader()->getTailDefaultLine());
+ $line = (int)$this->getRequest()->get('line', $this->getLogReader()->getTailDefaultLine());
58
$result = shell_exec("tail -n {$line} {$file}");
59
60
return new Response($result, 200, [
0 commit comments