projects
/
quix0rs-gnu-social.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
99da1eb
)
property attribute could be null in meta tags of course
author
Mikael Nordfeldth
<mmn@hethane.se>
Wed, 13 Jan 2016 13:24:00 +0000
(14:24 +0100)
committer
Mikael Nordfeldth
<mmn@hethane.se>
Wed, 13 Jan 2016 13:24:00 +0000
(14:24 +0100)
plugins/Oembed/lib/opengraphhelper.php
patch
|
blob
|
history
diff --git
a/plugins/Oembed/lib/opengraphhelper.php
b/plugins/Oembed/lib/opengraphhelper.php
index 07b5cf5d70600f319b1871222a2f5d2904c21f77..4573f5d8abcfbc4092409d89012434c2a5563beb 100644
(file)
--- a/
plugins/Oembed/lib/opengraphhelper.php
+++ b/
plugins/Oembed/lib/opengraphhelper.php
@@
-34,7
+34,7
@@
class OpenGraphHelper
}
$property = $node->attributes->getNamedItem('property');
$matches = array();
- if (!preg_match(self::KEY_REGEX, $property->value, $matches)) {
+ if (
$property === null ||
!preg_match(self::KEY_REGEX, $property->value, $matches)) {
// not property="og:something"
continue;
}