Skip to content

Commit

Permalink
Merge pull request #13 from typecho/master
Browse files Browse the repository at this point in the history
  • Loading branch information
penndu committed May 30, 2022
2 parents dc7a9d5 + 88c3bfe commit a3c084a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions var/Widget/Archive.php
Original file line number Diff line number Diff line change
Expand Up @@ -1054,8 +1054,8 @@ public function header(?string $rule = null)
{
$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,
Expand Down Expand Up @@ -1320,7 +1320,7 @@ public function archiveTitle($defines = null, string $before = ' » ', stri
*/
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 ?? ''));
}

/**
Expand Down

0 comments on commit a3c084a

Please sign in to comment.