summaryrefslogtreecommitdiffstats
path: root/lib/Service/CurlService.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Service/CurlService.php')
-rw-r--r--lib/Service/CurlService.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Service/CurlService.php b/lib/Service/CurlService.php
index 7f572a83..c9005149 100644
--- a/lib/Service/CurlService.php
+++ b/lib/Service/CurlService.php
@@ -167,6 +167,9 @@ class CurlService {
}
$url = $this->get('Link.@attributes.template', $result, '');
+ if ($url === '') {
+ throw new HostMetaException('Failed to get URL');
+ }
$host = parse_url($url, PHP_URL_HOST);
$protocols = [parse_url($url, PHP_URL_SCHEME)];