Skip to content

Commit

Permalink
Merge pull request #4 from garygreen/fix/paths
Browse files Browse the repository at this point in the history
Fix url to file and simplified encoding of filename
  • Loading branch information
rap2hpoutre committed Feb 22, 2015
2 parents d09c65f + 6058d7b commit 2b484e6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/controllers/LogViewerController.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class LogViewerController extends \Illuminate\Routing\Controller
public function index()
{
if (\Input::get('l')) {
LaravelLogViewer::setFile(\Crypt::decrypt(\Input::get('l')));
LaravelLogViewer::setFile(base64_decode(\Input::get('l')));
}

$logs = LaravelLogViewer::all();
Expand Down
4 changes: 2 additions & 2 deletions src/views/log.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,14 @@
</style>
</head>
<body>
<div class="container-fluid"">
<div class="container-fluid">
<div class="row">
<div class="col-sm-3 col-md-2 sidebar">
<h1><span class="glyphicon glyphicon-calendar" aria-hidden="true"></span> Laravel Log Viewer</h1>
<p class="text-muted"><i>by Rap2h</i></p>
<div class="list-group">
@foreach($files as $file)
<a href="{{{ Request::url() }}}/?l={{{ Crypt::encrypt($file) }}}" class="list-group-item @if ($current_file == $file) llv-active @endif">
<a href="?l={{ base64_encode($file) }}" class="list-group-item @if ($current_file == $file) llv-active @endif">
{{$file}}
</a>
@endforeach
Expand Down

0 comments on commit 2b484e6

Please sign in to comment.