diff options
author | Mario Vavti <mario@mariovavti.com> | 2018-09-22 13:32:58 +0200 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2018-09-22 13:32:58 +0200 |
commit | 0a5ac62b59bf80b9942b2b6805aeea3796379d06 (patch) | |
tree | 7f8d9d5c3df3490cffef36580dbf6baeb7c056b9 /Zotlabs | |
parent | 1e5405ccaf3ddff88653cc34a04cfce9b7102891 (diff) | |
parent | 12d22709353151925797707e0a1c02e3703809bf (diff) | |
download | volse-hubzilla-0a5ac62b59bf80b9942b2b6805aeea3796379d06.tar.gz volse-hubzilla-0a5ac62b59bf80b9942b2b6805aeea3796379d06.tar.bz2 volse-hubzilla-0a5ac62b59bf80b9942b2b6805aeea3796379d06.zip |
Merge branch 'dev' of https://framagit.org/hubzilla/core into dev
Diffstat (limited to 'Zotlabs')
-rw-r--r-- | Zotlabs/Web/HttpMeta.php | 15 |
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 +} |