/var/Widget/Archive.php line 1992
修改为

        $this->description = $tag['description']?$tag['description']:$tag['name'];

适配PHP8.2的htmlspecialchars()为空字符串时的报错问题

估计还有很多8.2的问题,明天再弄了。


还是不修改源程序了,主题header.php内增加一行

    <?php if($this->is('tag')){ $this->setDescription($this->description?$this->description:$this->archiveTitle);}?>
    <?php $this->header(); ?>

注册页面register.php line7,8

$rememberName = htmlspecialchars(\Typecho\Cookie::get('__typecho_remember_name')?\Typecho\Cookie::get('__typecho_remember_name'):'');
$rememberMail = htmlspecialchars(\Typecho\Cookie::get('__typecho_remember_mail')?\Typecho\Cookie::get('__typecho_remember_mail'):'');