Fix bad encoding when handling files; closes #2399
This commit is contained in:
parent
711efe34bb
commit
3340ee7fd8
2 changed files with 5 additions and 5 deletions
|
@ -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,
|
||||
],
|
||||
]
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue