|
|
@ -91,7 +91,7 @@ class DiscoveryManager {
|
|
|
|
$replaceWith = str_replace("hostname.host", $_SERVER['HTTP_HOST'], $this->config->getAppValue('richdocuments', 'wopi_url'));
|
|
|
|
$replaceWith = str_replace("hostname.host", $_SERVER['HTTP_HOST'], $this->config->getAppValue('richdocuments', 'wopi_url'));
|
|
|
|
|
|
|
|
|
|
|
|
// Use plain HTTP for .onion/TOR
|
|
|
|
// Use plain HTTP for .onion/TOR
|
|
|
|
if (strpos($this->config->getAppValue('richdocuments', 'wopi_url'), ".onion") !== FALSE) {
|
|
|
|
if (strpos($replaceWith, ".onion") !== FALSE) {
|
|
|
|
$replaceWith = str_replace("https://", "http://", $replaceWith);
|
|
|
|
$replaceWith = str_replace("https://", "http://", $replaceWith);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|