Skip to content

Commit

Permalink
Fix #1449 (#1450)
Browse files Browse the repository at this point in the history
  • Loading branch information
sy-records committed May 30, 2022
1 parent 59a5c8d commit 88c3bfe
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 88c3bfe

Please sign in to comment.