From 06aba968722f390f193099eb580f4ee8bce758a7 Mon Sep 17 00:00:00 2001 From: Skylar Ittner Date: Thu, 7 Sep 2017 18:08:28 -0600 Subject: [PATCH] Do the last commit right --- lib/WOPI/DiscoveryManager.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/WOPI/DiscoveryManager.php b/lib/WOPI/DiscoveryManager.php index 5c646f8a..e4916876 100644 --- a/lib/WOPI/DiscoveryManager.php +++ b/lib/WOPI/DiscoveryManager.php @@ -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); }