mirror of
https://github.com/MrUnknownDE/panel.git
synced 2026-04-13 11:53:45 +02:00
Fix bad encoding when handling files; closes #2399
This commit is contained in:
@@ -117,8 +117,8 @@ class DaemonFileRepository extends DaemonRepository
|
||||
sprintf('/api/servers/%s/files/create-directory', $this->server->uuid),
|
||||
[
|
||||
'json' => [
|
||||
'name' => urldecode($name),
|
||||
'path' => urldecode($path),
|
||||
'name' => $name,
|
||||
'path' => $path,
|
||||
],
|
||||
]
|
||||
);
|
||||
@@ -172,7 +172,7 @@ class DaemonFileRepository extends DaemonRepository
|
||||
sprintf('/api/servers/%s/files/copy', $this->server->uuid),
|
||||
[
|
||||
'json' => [
|
||||
'location' => urldecode($location),
|
||||
'location' => $location,
|
||||
],
|
||||
]
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user