Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove .log file extension from URL #13

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mhanoglu
Copy link

@mhanoglu mhanoglu commented Feb 6, 2019

If URL endwith .log, many servers don't allow this request for security.

Example: Not working with IIS 7.5 server

@@ -40,7 +40,7 @@ public function tail($file, Request $request)
{
$offset = $request->get('offset');

$viewer = new LogViewer($file);
$viewer = new LogViewer($file.".log");
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

since you already add .log in LogViewer::getFilePath(), this line may cause laravel.log.log issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants