Do the last commit right

multihost
Skylar Ittner 7 years ago
parent 189ed76a62
commit 06aba96872

@ -91,7 +91,7 @@ class DiscoveryManager {
$replaceWith = str_replace("hostname.host", $_SERVER['HTTP_HOST'], $this->config->getAppValue('richdocuments', 'wopi_url'));
// 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);
}

Loading…
Cancel
Save