mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-24 04:42:14 +09:00
Fix escaping and userlang encoding of site keywords and description
This commit is contained in:
parent
faf4b1ea54
commit
f84715db5b
3 changed files with 7 additions and 6 deletions
|
|
@ -2716,7 +2716,7 @@ class Context
|
|||
foreach(self::$_instance->meta_tags as $key => $val)
|
||||
{
|
||||
list($name, $is_http_equiv) = explode("\t", $key);
|
||||
$ret[] = array('name' => $name, 'is_http_equiv' => $is_http_equiv, 'content' => $val);
|
||||
$ret[] = array('name' => $name, 'is_http_equiv' => $is_http_equiv, 'content' => escape($val, false));
|
||||
}
|
||||
|
||||
return $ret;
|
||||
|
|
@ -2732,6 +2732,7 @@ class Context
|
|||
*/
|
||||
public static function addMetaTag($name, $content, $is_http_equiv = FALSE)
|
||||
{
|
||||
getController('module')->replaceDefinedLangCode($content);
|
||||
self::$_instance->meta_tags[$name . "\t" . ($is_http_equiv ? '1' : '0')] = $content;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue