https://reisub.nsupdate.info/git
/
friendica.git
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
230c0a5
)
Protect access to rel attribute in Network\Probe
author
Hypolite Petovan
<hypolite@mrpetovan.com>
Mon, 25 Feb 2019 08:39:40 +0000
(
03:39
-0500)
committer
Hypolite Petovan
<hypolite@mrpetovan.com>
Mon, 25 Feb 2019 08:39:40 +0000
(
03:39
-0500)
src/Network/Probe.php
patch
|
blob
|
history
diff --git
a/src/Network/Probe.php
b/src/Network/Probe.php
index
deec3cf
..
b061595
100644
(file)
--- 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"];