From f4f2e2fac48d5107ae5822bb9d2598c4b1b2e8f2 Mon Sep 17 00:00:00 2001 From: "Eric C. Weig" Date: Thu, 3 Sep 2020 12:38:20 -0400 Subject: [PATCH] Update OHMSObjectPlugin.php Updated $base_url variable so that it is https rather than http. --- OHMSObjectPlugin.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OHMSObjectPlugin.php b/OHMSObjectPlugin.php index 6c15f36..62c4ef9 100644 --- a/OHMSObjectPlugin.php +++ b/OHMSObjectPlugin.php @@ -21,7 +21,7 @@ public function insertOHMSObject($text, $args) $format = metadata('item', array('Dublin Core', 'Format')); $plugin_path = realpath(__DIR__ . '/..'); $plugin_subpath = strstr($plugin_path, 'plugins'); - $base_url="http://".$_SERVER['SERVER_NAME'].dirname($_SERVER["REQUEST_URI"].'?').'/'; + $base_url="https://".$_SERVER['SERVER_NAME'].dirname($_SERVER["REQUEST_URI"].'?').'/'; $base_url=str_replace("/items/show/","","$base_url"); if ($theme == 'admin') {