Skip to content

Remove .log file extension from URL #13

New issue

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

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

Already on GitHub? # to your account

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

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

Successfully merging this pull request may close these issues.

2 participants