Skip to content

Commit c69f48a

Browse files
committed
Fix filemanager file edit bug, closes pterodactyl#867
1 parent 2212f28 commit c69f48a

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ This project follows [Semantic Versioning](http://semver.org) guidelines.
77
### Fixed
88
* `[beta.4]` — Fixes some bad search and replace action that happened previously and was throwing errors when validating user permissions.
99
* `[beta.4]` — Fixes behavior of variable validation to not break the page when no rules are provided.
10+
* `[beta.4]` — Fix bug preventing the editing of files in the file manager.
1011

1112
## v0.7.0-beta.4 (Derelict Dermodactylus)
1213
### Fixed

app/Contracts/Repository/Daemon/FileRepositoryInterface.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@ public function getFileStat(string $path): stdClass;
2121
* Return the contents of a given file if it can be edited in the Panel.
2222
*
2323
* @param string $path
24-
* @return \stdClass
24+
* @return string
2525
*
2626
* @throws \GuzzleHttp\Exception\RequestException
2727
*/
28-
public function getContent(string $path): stdClass;
28+
public function getContent(string $path): string;
2929

3030
/**
3131
* Save new contents to a given file.

app/Repositories/Daemon/FileRepository.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,11 @@ public function getFileStat(string $path): stdClass
3333
* Return the contents of a given file if it can be edited in the Panel.
3434
*
3535
* @param string $path
36-
* @return \stdClass
36+
* @return string
3737
*
3838
* @throws \GuzzleHttp\Exception\RequestException
3939
*/
40-
public function getContent(string $path): stdClass
40+
public function getContent(string $path): string
4141
{
4242
$file = pathinfo($path);
4343
$file['dirname'] = in_array($file['dirname'], ['.', './', '/']) ? null : trim($file['dirname'], '/') . '/';

0 commit comments

Comments
 (0)