Fix issue discovering webmentions endpoints for some sites
The Guzzle provided Header::parse does not like commas in URLs
This commit is contained in:
parent
acbb58c294
commit
659bc57e24
2 changed files with 3 additions and 2 deletions
|
@ -76,7 +76,7 @@ class SendWebMentions implements ShouldQueue
|
|||
//check HTTP Headers for webmention endpoint
|
||||
$links = Header::parse($response->getHeader('Link'));
|
||||
foreach ($links as $link) {
|
||||
if (mb_stristr($link['rel'], 'webmention')) {
|
||||
if (array_key_exists('rel', $link) && mb_stristr($link['rel'], 'webmention')) {
|
||||
return $this->resolveUri(trim($link[0], '<>'), $url);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue