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 @@
@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)