@@ 252-261 (lines=10) @@ | ||
249 | $discovery_parsed = simplexml_load_string($discovery); |
|
250 | libxml_disable_entity_loader($loadEntities); |
|
251 | ||
252 | if ($discovery_parsed === false) { |
|
253 | $this->cache->remove('discovery.xml'); |
|
254 | $wopiRemote = $this->getWopiUrl($this->isTester()); |
|
255 | ||
256 | return array( |
|
257 | 'status' => 'error', |
|
258 | 'message' => $this->l10n->t('Collabora Online: discovery.xml from "%s" is not a well-formed XML string.', array($wopiRemote)), |
|
259 | 'hint' => $this->l10n->t('Please contact the "%s" administrator.', array($wopiRemote)) |
|
260 | ); |
|
261 | } |
|
262 | } |
|
263 | catch (ResponseException $e) { |
|
264 | return array( |
|
@@ 418-427 (lines=10) @@ | ||
415 | $discovery_parsed = simplexml_load_string($discovery); |
|
416 | libxml_disable_entity_loader($loadEntities); |
|
417 | ||
418 | if ($discovery_parsed === false) { |
|
419 | $this->cache->remove('discovery.xml'); |
|
420 | $wopiRemote = $this->getWopiUrl($this->isTester()); |
|
421 | ||
422 | return array( |
|
423 | 'status' => 'error', |
|
424 | 'message' => $this->l10n->t('Collabora Online: discovery.xml from "%s" is not a well-formed XML string.', array($wopiRemote)), |
|
425 | 'hint' => $this->l10n->t('Please contact the "%s" administrator.', array($wopiRemote)) |
|
426 | ); |
|
427 | } |
|
428 | } |
|
429 | catch (ResponseException $e) { |
|
430 | return array( |