From f597f3b378b3df741c718039393b75dc8f331ae7 Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Mon, 25 Feb 2019 03:39:40 -0500 Subject: [PATCH] Protect access to rel attribute in Network\Probe --- src/Network/Probe.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Network/Probe.php b/src/Network/Probe.php index deec3cf2d..b061595d2 100644 --- a/src/Network/Probe.php +++ b/src/Network/Probe.php @@ -156,7 +156,7 @@ class Probe continue; } - if (($attributes["rel"] == "lrdd") && !empty($attributes["template"])) { + if (!empty($attributes["rel"]) && $attributes["rel"] == "lrdd" && !empty($attributes["template"])) { $type = (empty($attributes["type"]) ? '' : $attributes["type"]); $lrdd[$type] = $attributes["template"];