mirror of
https://github.com/nuxsmin/sysPass.git
synced 2026-03-06 16:36:59 +01:00
* [FIX] Fixed wrong behavior when downloading PDF file from file management
* [MOD] Improved backup and export management. They are now stored in compressed file format, can be downloaded without direct access through the web browser and it keeps tracking when downloaded. * [MOD] Updated translations * [ADD] Unit tests Signed-off-by: nuxsmin <nuxsmin@syspass.org>
This commit is contained in:
@@ -30,7 +30,7 @@ use SP\Core\AppInfoInterface;
|
||||
use SP\Core\Exceptions\CheckException;
|
||||
use SP\Http\JsonResponse;
|
||||
use SP\Modules\Web\Controllers\Traits\JsonTrait;
|
||||
use SP\Util\Version;
|
||||
use SP\Util\VersionUtil;
|
||||
|
||||
/**
|
||||
* Class StatusController
|
||||
@@ -73,7 +73,7 @@ final class StatusController extends SimpleControllerBase
|
||||
if (preg_match('/v?(?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)\.(?P<build>\d+)(?P<pre_release>\-[a-z0-9\.]+)?$/', $requestData->tag_name, $matches)) {
|
||||
$pubVersion = $matches['major'] . $matches['minor'] . $matches['patch'] . '.' . $matches['build'];
|
||||
|
||||
if (Version::checkVersion(Version::getVersionStringNormalized(), $pubVersion)) {
|
||||
if (VersionUtil::checkVersion(VersionUtil::getVersionStringNormalized(), $pubVersion)) {
|
||||
return $this->returnJsonResponseData([
|
||||
'version' => $requestData->tag_name,
|
||||
'url' => $requestData->html_url,
|
||||
|
||||
Reference in New Issue
Block a user