Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/ONLYOFFICE/onlyoffice-nextcloud.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'lib/documentservice.php')
-rw-r--r--lib/documentservice.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/documentservice.php b/lib/documentservice.php
index 5069506..c37522f 100644
--- a/lib/documentservice.php
+++ b/lib/documentservice.php
@@ -414,6 +414,10 @@ class DocumentService {
}
$version = $commandResponse->version;
+ $versionF = floatval($version);
+ if ($versionF > 0.0 && $versionF <= 6.0) {
+ throw new \Exception($this->trans->t("Not supported version"));
+ }
} catch (\Exception $e) {
$logger->logException($e, ["message" => "CommandRequest on check error", "app" => self::$appName]);