diff --git a/app/Repositories/Daemon/FileRepository.php b/app/Repositories/Daemon/FileRepository.php index 9f32029bd..b34b53349 100644 --- a/app/Repositories/Daemon/FileRepository.php +++ b/app/Repositories/Daemon/FileRepository.php @@ -143,7 +143,7 @@ class FileRepository throw new Exception('A valid directory must be specified in order to list its contents.'); } - $res = $this->client->request('GET', '/server/directory/' . $directory, [ + $res = $this->client->request('GET', '/server/directory/' . rawurlencode($directory), [ 'headers' => $this->headers ]); diff --git a/resources/views/server/files/edit.blade.php b/resources/views/server/files/edit.blade.php index bc412789b..e78375599 100644 --- a/resources/views/server/files/edit.blade.php +++ b/resources/views/server/files/edit.blade.php @@ -29,8 +29,8 @@
{!! csrf_field() !!} - - + +
@endcan diff --git a/resources/views/server/files/list.blade.php b/resources/views/server/files/list.blade.php index 5877e65ff..873a80fbb 100644 --- a/resources/views/server/files/list.blade.php +++ b/resources/views/server/files/list.blade.php @@ -22,7 +22,7 @@ @if (isset($directory['show']) && $directory['show'] === true) - ← {{ $directory['link_show'] }} + ← {{ $directory['link_show'] }} @@ -31,7 +31,7 @@ @foreach ($folders as $folder) - {{ $folder['entry'] }} + {{ $folder['entry'] }} {{ $folder['size'] }} {{ date('m/d/y H:i:s', $folder['date']) }} @@ -41,7 +41,7 @@
@can('delete-files', $server) - + @endcan
@@ -54,7 +54,7 @@ @if(in_array($file['extension'], $extensions)) @can('edit-files', $server) - {{ $file['entry'] }} + {{ $file['entry'] }} @else {{ $file['entry'] }} @endcan @@ -70,12 +70,12 @@
@can('delete-files', $server) - + @endcan