Fix escaping and userlang encoding of site keywords and description

This commit is contained in:
Kijin Sung 2016-05-08 23:29:47 +09:00
parent faf4b1ea54
commit f84715db5b
3 changed files with 7 additions and 6 deletions

View file

@ -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;
}