From 67e57a83df330631fa160866245bcd551e6984e4 Mon Sep 17 00:00:00 2001 From: Michael Date: Sat, 7 Oct 2017 18:35:10 +0000 Subject: [PATCH] Feeds are now trimmed before importing --- include/feed.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/feed.php b/include/feed.php index 12cf06ca50..5676566c42 100644 --- a/include/feed.php +++ b/include/feed.php @@ -28,7 +28,7 @@ function feed_import($xml,$importer,&$contact, &$hub, $simulate = false) { } $doc = new DOMDocument(); - @$doc->loadXML($xml); + @$doc->loadXML(trim($xml)); $xpath = new DomXPath($doc); $xpath->registerNamespace('atom', NAMESPACE_ATOM1); $xpath->registerNamespace('dc', "http://purl.org/dc/elements/1.1/");