From 1302e2e924daf0b68c877a8ce5d614678c125a9c Mon Sep 17 00:00:00 2001 From: ONLYOFFICE Date: Thu, 23 Oct 2014 11:53:28 +0400 Subject: [PATCH] file export bug fix. --- OfficeWeb/sdk/Common/downloaderfiles.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/OfficeWeb/sdk/Common/downloaderfiles.js b/OfficeWeb/sdk/Common/downloaderfiles.js index eba15fdb..867254f1 100644 --- a/OfficeWeb/sdk/Common/downloaderfiles.js +++ b/OfficeWeb/sdk/Common/downloaderfiles.js @@ -84,6 +84,8 @@ }; } function getFile(filePath) { + var VRegExp = new RegExp(/^http(s)?:\/\/[a-z0-9-.]+(:[\d]*)?\//i); + filePath = filePath.replace(VRegExp, "/"); fh = new FileHandler(); fh.get(filePath); } \ No newline at end of file