From f3eaa1683d5945b14e43dbae3c29977901ef0847 Mon Sep 17 00:00:00 2001 From: Andras Timar Date: Wed, 23 Mar 2016 22:03:39 +0100 Subject: [PATCH] use SSL --- controller/documentcontroller.php | 4 ++-- js/viewer/viewer.js | 20 -------------------- lib/appconfig.php | 2 +- 3 files changed, 3 insertions(+), 23 deletions(-) diff --git a/controller/documentcontroller.php b/controller/documentcontroller.php index e405b9e2..8a72657d 100644 --- a/controller/documentcontroller.php +++ b/controller/documentcontroller.php @@ -92,12 +92,12 @@ class DocumentController extends Controller{ "/hosting/discovery" ); $webSocket = sprintf( "%s%s%s", - "ws://", + "wss://", isset($parts['host']) ? $parts['host'] : "", isset($parts['port']) ? ":" . $parts['port'] : ""); } else { - return $this->responseError('Invalid Collabora Libre Office Online', $wopiRemote); + return $this->responseError('Invalid Collabora Online', $wopiRemote); } $memcache = \OC::$server->getMemCacheFactory(); diff --git a/js/viewer/viewer.js b/js/viewer/viewer.js index 234f43e5..c33bc919 100644 --- a/js/viewer/viewer.js +++ b/js/viewer/viewer.js @@ -85,26 +85,6 @@ var odfViewer = { var attachTo = odfViewer.isDocuments ? '#documents-content' : '#controls'; FileList.setViewerMode(true); - - // TODO call something like in the onEdit case; or do we want - // view-only at all? - /* - var viewer = window.location.protocol + '//' + window.location.host + '/loleaflet/dist/loleaflet.html?' + - 'file_path=' + context.dir + '/' + filename + - '&host=' + 'ws://' + window.location.hostname + ':9980' + - '&permission=' + 'view' + - '×tamp=' + ''; - - var frame = '