mirror of
https://github.com/typecho/typecho.git
synced 2025-03-20 01:49:40 +01:00
Merge pull request #1083 from yongirl320/trackback-bug-fix
fix get trackback param bug
This commit is contained in:
commit
cc078d6f6a
@ -90,7 +90,7 @@ class Widget_Service extends Widget_Abstract_Options implements Widget_Interface
|
||||
$urlPart = parse_url($url);
|
||||
|
||||
if (isset($urlPart['scheme'])) {
|
||||
if ('http' != $urlPart['scheme'] || 'https' != $urlPart['scheme']) {
|
||||
if ('http' != $urlPart['scheme'] && 'https' != $urlPart['scheme']) {
|
||||
continue;
|
||||
}
|
||||
} else {
|
||||
@ -131,8 +131,8 @@ class Widget_Service extends Widget_Abstract_Options implements Widget_Interface
|
||||
}
|
||||
|
||||
/** 发送trackback */
|
||||
if ($post->have() && !empty($this->request->trackback)) {
|
||||
$links = $this->request->trackback;
|
||||
if ($post->have() && !empty($this->request->getArray('trackback'))) {
|
||||
$links = $this->request->getArray('trackback');
|
||||
foreach ($links as $url) {
|
||||
|
||||
$client = Typecho_Http_Client::get();
|
||||
|
Loading…
x
Reference in New Issue
Block a user