From: Hypolite Petovan Date: Mon, 25 Feb 2019 08:39:40 +0000 (-0500) Subject: Protect access to rel attribute in Network\Probe X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=f597f3b378b3df741c718039393b75dc8f331ae7;p=friendica.git Protect access to rel attribute in Network\Probe --- diff --git a/src/Network/Probe.php b/src/Network/Probe.php index deec3cf2dc..b061595d26 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"];