mirror of
https://github.com/typecho/typecho.git
synced 2025-01-29 10:21:11 +01:00
parent
59a5c8d14d
commit
88c3bfe13f
@ -1054,8 +1054,8 @@ class Archive extends Contents
|
||||
{
|
||||
$rules = [];
|
||||
$allows = [
|
||||
'description' => htmlspecialchars($this->description),
|
||||
'keywords' => htmlspecialchars($this->keywords),
|
||||
'description' => htmlspecialchars($this->description ?? ''),
|
||||
'keywords' => htmlspecialchars($this->keywords ?? ''),
|
||||
'generator' => $this->options->generator,
|
||||
'template' => $this->options->theme,
|
||||
'pingback' => $this->options->xmlRpcUrl,
|
||||
@ -1320,7 +1320,7 @@ class Archive extends Contents
|
||||
*/
|
||||
public function keywords(string $split = ',', string $default = '')
|
||||
{
|
||||
echo empty($this->keywords) ? $default : str_replace(',', $split, htmlspecialchars($this->keywords));
|
||||
echo empty($this->keywords) ? $default : str_replace(',', $split, htmlspecialchars($this->keywords ?? ''));
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user