mirror of
https://github.com/typecho/typecho.git
synced 2025-03-20 01:49:40 +01:00
修正评论检测
This commit is contained in:
parent
b960ecec4a
commit
e7ba0057d5
@ -619,7 +619,10 @@ class Widget_Archive extends Widget_Abstract_Contents
|
||||
$permalink = Typecho_Common::url($path, $this->options->index);
|
||||
$requestUrl = $this->request->getRequestUrl();
|
||||
|
||||
if ($permalink != $requestUrl) {
|
||||
$src = parse_url($permalink);
|
||||
$target = parse_url($requestUrl);
|
||||
|
||||
if ($src['host'] != $target['host'] || $src['path'] != $target['path']) {
|
||||
$this->response->redirect($permalink, true);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user