]> git.mxchange.org Git - friendica.git/commitdiff
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 deec3cf2dcb22f3bb0d51b6ee7a08c9492bf1caa..b061595d263d7e579f92cb9fc53254d868ab2ffa 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"];