Translate internal URL to external when needed
This commit is contained in:
parent
6ff27cb17f
commit
cef4179de3
@ -88,6 +88,8 @@ class DiscoveryManager {
|
|||||||
}
|
}
|
||||||
|
|
||||||
$responseBody = $response->getBody();
|
$responseBody = $response->getBody();
|
||||||
|
$replaceWith = str_replace("hostname.host", $_SERVER['HTTP_HOST'], $this->config->getAppValue('richdocuments', 'wopi_url'));
|
||||||
|
$responseBodyMangled = str_replace($this->config->getAppValue('richdocuments', 'wopi_internal_url'), $replaceWith, $responseBody);
|
||||||
// Skylar: Disable saving too, we don't need it if we're not loading ever
|
// Skylar: Disable saving too, we don't need it if we're not loading ever
|
||||||
/*$file->putContent(
|
/*$file->putContent(
|
||||||
json_encode([
|
json_encode([
|
||||||
@ -95,7 +97,7 @@ class DiscoveryManager {
|
|||||||
'timestamp' => $this->timeFactory->getTime(),
|
'timestamp' => $this->timeFactory->getTime(),
|
||||||
])
|
])
|
||||||
);*/
|
);*/
|
||||||
return $responseBody;
|
return $responseBodyMangled;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function refretch() {
|
public function refretch() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user