Mercurial > hg > cmmr2012-drupal-site
diff vendor/zendframework/zend-feed/src/Writer/Renderer/Entry/Rss.php @ 5:12f9dff5fda9 tip
Update to Drupal core 8.7.1
author | Chris Cannam |
---|---|
date | Thu, 09 May 2019 15:34:47 +0100 |
parents | 5311817fb629 |
children |
line wrap: on
line diff
--- a/vendor/zendframework/zend-feed/src/Writer/Renderer/Entry/Rss.php Thu Feb 28 13:11:55 2019 +0000 +++ b/vendor/zendframework/zend-feed/src/Writer/Renderer/Entry/Rss.php Thu May 09 15:34:47 2019 +0100 @@ -296,7 +296,10 @@ } $text = $dom->createTextNode($this->getDataContainer()->getId()); $id->appendChild($text); - if (! Uri::factory($this->getDataContainer()->getId())->isValid()) { + + $uri = Uri::factory($this->getDataContainer()->getId()); + if (! $uri->isValid() || ! $uri->isAbsolute()) { + /** @see http://www.rssboard.org/rss-profile#element-channel-item-guid */ $id->setAttribute('isPermaLink', 'false'); } }