aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2018-09-22 10:44:51 +0200
committerMario <mario@mariovavti.com>2018-09-22 10:44:51 +0200
commit12d22709353151925797707e0a1c02e3703809bf (patch)
tree0e1d909710a7c7c21073ccd826acd2b1f5e6c03f /Zotlabs
parent2b452ffbd370f52122577910a8b36846d526678d (diff)
parented00d1b2e3895f5feb0767d1b002f7be08797379 (diff)
downloadvolse-hubzilla-12d22709353151925797707e0a1c02e3703809bf.tar.gz
volse-hubzilla-12d22709353151925797707e0a1c02e3703809bf.tar.bz2
volse-hubzilla-12d22709353151925797707e0a1c02e3703809bf.zip
Merge branch 'page-meta-properties' into 'dev'
Page meta properties See merge request hubzilla/core!1283
Diffstat (limited to 'Zotlabs')
-rw-r--r--Zotlabs/Web/HttpMeta.php15
1 files changed, 13 insertions, 2 deletions
diff --git a/Zotlabs/Web/HttpMeta.php b/Zotlabs/Web/HttpMeta.php
index 469a9ed8b..ceaa82162 100644
--- a/Zotlabs/Web/HttpMeta.php
+++ b/Zotlabs/Web/HttpMeta.php
@@ -54,8 +54,19 @@ class HttpMeta {
}
}
if($this->check_required()) {
+ $arrayproperties = [ 'og:image' ];
foreach($this->og as $k => $v) {
- $o .= '<meta property="' . $k . '" content="' . urlencode($v) . '" />' . "\r\n" ;
+ if (in_array($k,$arrayproperties)) {
+ if (is_array($v)) {
+ foreach ($v as $v2) {
+ $o .= '<meta property="' . $k . '" content="' . $v2 . '" />' . "\r\n" ;
+ }
+ } else {
+ $o .= '<meta property="' . $k . '" content="' . $v . '" />' . "\r\n" ;
+ }
+ } else {
+ $o .= '<meta property="' . $k . '" content="' . $v . '" />' . "\r\n" ;
+ }
}
}
if($o)
@@ -63,4 +74,4 @@ class HttpMeta {
return $o;
}
-} \ No newline at end of file
+}