|
|
|
@ -110,13 +110,13 @@ class DocumentController extends Controller{
|
|
|
|
|
try {
|
|
|
|
|
$wopiClient = \OC::$server->getHTTPClientService()->newClient();
|
|
|
|
|
$xmlBody = $wopiClient->get($wopiDiscovery)->getBody();
|
|
|
|
|
if (!$xmlBody) {
|
|
|
|
|
return $this->responseError('failure body content', $wopiRemote);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
catch (\Exception $e) {
|
|
|
|
|
return $this->responseError($e->getMessage(), $wopiRemote);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (!$xmlBody) {
|
|
|
|
|
return $this->responseError('failure body content', $wopiRemote);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$loadEntities = libxml_disable_entity_loader(true);
|
|
|
|
@ -128,6 +128,7 @@ class DocumentController extends Controller{
|
|
|
|
|
else {
|
|
|
|
|
return $this->responseError('failure discovery.xml not well-formed XML string', $wopiRemote);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
\OC::$server->getNavigationManager()->setActiveEntry( 'richdocuments_index' );
|
|
|
|
|
$maxUploadFilesize = \OCP\Util::maxUploadFilesize("/");
|
|
|
|
|