mirror of
https://github.com/pelican-dev/panel.git
synced 2026-05-04 18:00:48 +03:00
Encode file path in url for folders (#1662)
This commit is contained in:
@@ -107,7 +107,7 @@ class ListFiles extends ListRecords
|
||||
])
|
||||
->recordUrl(function (File $file) use ($server) {
|
||||
if ($file->is_directory) {
|
||||
return self::getUrl(['path' => join_paths($this->path, $file->name)]);
|
||||
return self::getUrl(['path' => encode_path(join_paths($this->path, $file->name))]);
|
||||
}
|
||||
|
||||
if (!auth()->user()->can(Permission::ACTION_FILE_READ_CONTENT, $server)) {
|
||||
|
||||
Reference in New Issue
Block a user