Merge pull request #6755 from MrPetovan/bug/notices

Protect access to rel attribute in Network\Probe
2022.09-rc
Philipp 2019-02-25 10:10:41 +01:00 zatwierdzone przez GitHub
commit 4f300e41b4
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -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"];