mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-20 00:55:19 +00:00
meta['name'] != meta['property']
This commit is contained in:
parent
90e98e58cf
commit
dc82fba51b
1 changed files with 2 additions and 1 deletions
|
@ -53,10 +53,11 @@ class HttpMeta {
|
|||
|
||||
|
||||
function get() {
|
||||
// use 'name' for most meta fields, and 'property' for opengraph properties
|
||||
$o = '';
|
||||
if ($this->vars) {
|
||||
foreach ($this->vars as $k => $v) {
|
||||
$o .= '<meta property="' . htmlspecialchars($k,ENT_COMPAT,'UTF-8',false) . '" content="' . htmlspecialchars($v,ENT_COMPAT,'UTF-8',false) . '" />' . "\r\n" ;
|
||||
$o .= '<meta name="' . htmlspecialchars($k,ENT_COMPAT,'UTF-8',false) . '" content="' . htmlspecialchars($v,ENT_COMPAT,'UTF-8',false) . '" />' . "\r\n" ;
|
||||
}
|
||||
}
|
||||
if ($this->check_required()) {
|
||||
|
|
Loading…
Reference in a new issue