From c0e82edfb4b4e4c422fb5613e21ab5303000a5ea Mon Sep 17 00:00:00 2001 From: thomasmars Date: Thu, 2 Mar 2017 14:25:30 +0100 Subject: [PATCH] Fixed endpoint address HFP-794 --- h5p.classes.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/h5p.classes.php b/h5p.classes.php index 85f0116..0ce52a2 100644 --- a/h5p.classes.php +++ b/h5p.classes.php @@ -2783,7 +2783,7 @@ class H5PCore { $protocol = (extension_loaded('openssl') ? 'https' : 'http'); $endpoint = H5PCore::$hubEndpoints[H5PCore::CONTENT_TYPES]; - $data = $interface->fetchExternalData($protocol . $endpoint, $postData); + $data = $interface->fetchExternalData("{$protocol}://{$endpoint}", $postData); // No data received if (!$data) {