Skip to content

Commit

Permalink
fix: corrected parameter handling (#3312)
Browse files Browse the repository at this point in the history
  • Loading branch information
thorsten committed Jan 5, 2025
1 parent 6d8785b commit d08e292
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions phpmyfaq/src/phpMyFAQ/Controller/Api/SetupController.php
Original file line number Diff line number Diff line change
Expand Up @@ -100,10 +100,8 @@ public function updateDatabase(Request $request): JsonResponse

$installedVersion = Filter::filterVar($request->getContent(), FILTER_SANITIZE_SPECIAL_CHARS);

$version = json_decode(html_entity_decode($installedVersion));

$update = new Update(new System(), $this->configuration);
$update->setVersion($version->version);
$update->setVersion($installedVersion);

try {
if ($update->applyUpdates()) {
Expand Down
2 changes: 1 addition & 1 deletion phpmyfaq/src/phpMyFAQ/System.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ class System
/**
* Patch level.
*/
private const VERSION_PATCH_LEVEL = 3;
private const VERSION_PATCH_LEVEL = 4;

/**
* Pre-release version.
Expand Down

0 comments on commit d08e292

Please sign in to comment.