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