mirror of
https://github.com/pelican-dev/panel.git
synced 2025-09-08 09:58:37 +02:00
Encode file path in url for folders (#1662)
This commit is contained in:
parent
2952e22619
commit
925ab26fb4
@ -107,7 +107,7 @@ class ListFiles extends ListRecords
|
|||||||
])
|
])
|
||||||
->recordUrl(function (File $file) use ($server) {
|
->recordUrl(function (File $file) use ($server) {
|
||||||
if ($file->is_directory) {
|
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)) {
|
if (!auth()->user()->can(Permission::ACTION_FILE_READ_CONTENT, $server)) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user