Protect access to rel attribute in Network\Probe
authorHypolite Petovan <hypolite@mrpetovan.com>
Mon, 25 Feb 2019 08:39:40 +0000 (03:39 -0500)
committerHypolite Petovan <hypolite@mrpetovan.com>
Mon, 25 Feb 2019 08:39:40 +0000 (03:39 -0500)
src/Network/Probe.php

index deec3cf..b061595 100644 (file)
@@ -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"];