Skip to content

Commit

Permalink
Merge pull request #134 from ONLYOFFICE/develop
Browse files Browse the repository at this point in the history
Release/3.0.0
  • Loading branch information
LinneyS authored Sep 11, 2019
2 parents 55fc8ef + 4069681 commit d890a58
Show file tree
Hide file tree
Showing 76 changed files with 1,157 additions and 133 deletions.
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
# Change Log

## 3.0.0
## Added
- "save as" to the folder
- inserting images from the folder
- Mail Merge
- connection to the demo server
- embedding a watermark

## Changed
- updated files for compatibility with MS Office v2016

## 2.4.0
## Added
- compatibility with encryption
Expand Down
2 changes: 1 addition & 1 deletion appinfo/app.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
* For details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html
*
* You can contact Ascensio System SIA at 17-2 Elijas street, Riga, Latvia, EU, LV-1021.
* You can contact Ascensio System SIA at 20A-12 Ernesta Birznieka-Upisha street, Riga, Latvia, EU, LV-1050.
*
* The interactive user interfaces in modified source and object code versions of the Program
* must display Appropriate Legal Notices, as required under Section 5 of the GNU AGPL version 3.
Expand Down
2 changes: 1 addition & 1 deletion appinfo/application.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
* For details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html
*
* You can contact Ascensio System SIA at 17-2 Elijas street, Riga, Latvia, EU, LV-1021.
* You can contact Ascensio System SIA at 20A-12 Ernesta Birznieka-Upisha street, Riga, Latvia, EU, LV-1050.
*
* The interactive user interfaces in modified source and object code versions of the Program
* must display Appropriate Legal Notices, as required under Section 5 of the GNU AGPL version 3.
Expand Down
2 changes: 1 addition & 1 deletion appinfo/info.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<description>ONLYOFFICE connector enables you to edit Office documents within ONLYOFFICE from the familiar web interface. This will create a new Open in ONLYOFFICE action within the document library for Office documents. This allows multiple users to collaborate in real time and to save back those changes to your file storage.</description>
<licence>agpl</licence>
<author mail="[email protected]" homepage="https://www.onlyoffice.com/">Ascensio System SIA</author>
<version>2.4.0</version>
<version>3.0.0</version>
<namespace>Onlyoffice</namespace>
<types>
<filesystem/>
Expand Down
5 changes: 4 additions & 1 deletion appinfo/routes.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
* For details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html
*
* You can contact Ascensio System SIA at 17-2 Elijas street, Riga, Latvia, EU, LV-1021.
* You can contact Ascensio System SIA at 20A-12 Ernesta Birznieka-Upisha street, Riga, Latvia, EU, LV-1050.
*
* The interactive user interfaces in modified source and object code versions of the Program
* must display Appropriate Legal Notices, as required under Section 5 of the GNU AGPL version 3.
Expand All @@ -37,8 +37,11 @@
["name" => "editor#config", "url" => "/ajax/config/{fileId}", "verb" => "GET"],
["name" => "editor#create", "url" => "/ajax/new", "verb" => "POST"],
["name" => "editor#convert", "url" => "/ajax/convert", "verb" => "POST"],
["name" => "editor#save", "url" => "/ajax/save", "verb" => "POST"],
["name" => "editor#url", "url" => "/ajax/url", "verb" => "GET"],
["name" => "settings#save_address", "url" => "/ajax/settings/address", "verb" => "PUT"],
["name" => "settings#save_common", "url" => "/ajax/settings/common", "verb" => "PUT"],
["name" => "settings#save_watermark", "url" => "/ajax/settings/watermark", "verb" => "PUT"],
["name" => "settings#get_settings", "url" => "/ajax/settings", "verb" => "GET"],
]
];
Binary file modified assets/bg/new.docx
Binary file not shown.
Binary file modified assets/bg/new.pptx
Binary file not shown.
Binary file modified assets/bg/new.xlsx
Binary file not shown.
Binary file modified assets/cs/new.docx
Binary file not shown.
Binary file modified assets/cs/new.pptx
Binary file not shown.
Binary file modified assets/de/new.docx
Binary file not shown.
Binary file modified assets/de/new.pptx
Binary file not shown.
Binary file modified assets/de_DE/new.docx
Binary file not shown.
Binary file modified assets/de_DE/new.pptx
Binary file not shown.
Binary file modified assets/el/new.docx
Binary file not shown.
Binary file modified assets/el/new.pptx
Binary file not shown.
Binary file modified assets/en/new.docx
Binary file not shown.
Binary file modified assets/en/new.pptx
Binary file not shown.
Binary file modified assets/en/new.xlsx
Binary file not shown.
Binary file modified assets/es/new.docx
Binary file not shown.
Binary file modified assets/es/new.pptx
Binary file not shown.
Binary file modified assets/fr/new.docx
Binary file not shown.
Binary file modified assets/fr/new.pptx
Binary file not shown.
Binary file modified assets/it/new.docx
Binary file not shown.
Binary file modified assets/it/new.pptx
Binary file not shown.
Binary file modified assets/ko/new.docx
Binary file not shown.
Binary file modified assets/ko/new.pptx
Binary file not shown.
Binary file modified assets/nl/new.docx
Binary file not shown.
Binary file modified assets/nl/new.pptx
Binary file not shown.
Binary file modified assets/nl/new.xlsx
Binary file not shown.
Binary file modified assets/pl/new.docx
Binary file not shown.
Binary file modified assets/pl/new.pptx
Binary file not shown.
Binary file modified assets/pt_BR/new.docx
Binary file not shown.
Binary file modified assets/pt_BR/new.pptx
Binary file not shown.
Binary file modified assets/pt_PT/new.docx
Binary file not shown.
Binary file modified assets/pt_PT/new.pptx
Binary file not shown.
Binary file modified assets/ru/new.docx
Binary file not shown.
Binary file modified assets/ru/new.pptx
Binary file not shown.
Binary file modified assets/sv/new.docx
Binary file not shown.
Binary file modified assets/sv/new.pptx
Binary file not shown.
Binary file modified assets/sv/new.xlsx
Binary file not shown.
Binary file modified assets/zh_CN/new.docx
Binary file not shown.
Binary file modified assets/zh_CN/new.pptx
Binary file not shown.
19 changes: 2 additions & 17 deletions controller/callbackcontroller.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
* For details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html
*
* You can contact Ascensio System SIA at 17-2 Elijas street, Riga, Latvia, EU, LV-1021.
* You can contact Ascensio System SIA at 20A-12 Ernesta Birznieka-Upisha street, Riga, Latvia, EU, LV-1050.
*
* The interactive user interfaces in modified source and object code versions of the Program
* must display Appropriate Legal Notices, as required under Section 5 of the GNU AGPL version 3.
Expand Down Expand Up @@ -346,7 +346,6 @@ public function track($doc, $users, $key, $status, $url, $token) {

try {
$decodedHeader = \Firebase\JWT\JWT::decode($header, $this->config->GetDocumentServerSecret(), array("HS256"));
$this->logger->debug("Track HEADER : " . json_encode($decodedHeader), array("app" => $this->appName));

$payload = $decodedHeader->payload;
} catch (\UnexpectedValueException $e) {
Expand Down Expand Up @@ -400,21 +399,7 @@ public function track($doc, $users, $key, $status, $url, $token) {
return $error;
}

$documentServerUrl = $this->config->GetDocumentServerInternalUrl(true);
if (!empty($documentServerUrl)) {
$from = $this->config->GetDocumentServerUrl();

if (!preg_match("/^https?:\/\//i", $from)) {
$parsedUrl = parse_url($url);
$from = $parsedUrl["scheme"] . "://" . $parsedUrl["host"] . (array_key_exists("port", $parsedUrl) ? (":" . $parsedUrl["port"]) : "") . $from;
}

if ($from !== $documentServerUrl)
{
$this->logger->debug("Replace in track from " . $from . " to " . $documentServerUrl, array("app" => $this->appName));
$url = str_replace($from, $documentServerUrl, $url);
}
}
$url = $this->config->ReplaceDocumentServerUrlToInternal($url);

$fileName = $file->getName();
$curExt = strtolower(pathinfo($fileName, PATHINFO_EXTENSION));
Expand Down
Loading

0 comments on commit d890a58

Please sign in to comment.