Update to Drupal 8.2.6. For more information, see https://www.drupal.org/project/drupal/releases/8.2.6
This commit is contained in:
parent
db56c09587
commit
f1e72395cb
588 changed files with 26857 additions and 2777 deletions
|
|
@ -44,7 +44,16 @@ class RssResponseRelativeUrlFilter implements EventSubscriberInterface {
|
|||
*/
|
||||
protected function transformRootRelativeUrlsToAbsolute($rss_markup, Request $request) {
|
||||
$rss_dom = new \DOMDocument();
|
||||
|
||||
// Load the RSS, if there are parsing errors, abort and return the unchanged
|
||||
// markup.
|
||||
$previous_value = libxml_use_internal_errors(TRUE);
|
||||
$rss_dom->loadXML($rss_markup);
|
||||
$errors = libxml_get_errors();
|
||||
libxml_use_internal_errors($previous_value);
|
||||
if ($errors) {
|
||||
return $rss_markup;
|
||||
}
|
||||
|
||||
// Invoke Html::transformRootRelativeUrlsToAbsolute() on all HTML content
|
||||
// embedded in this RSS feed.
|
||||
|
|
|
|||
Reference in a new issue