]> git.mxchange.org Git - friendica.git/commitdiff
Feeds are now trimmed before importing
authorMichael <heluecht@pirati.ca>
Sat, 7 Oct 2017 18:35:10 +0000 (18:35 +0000)
committerMichael <heluecht@pirati.ca>
Sat, 7 Oct 2017 18:35:10 +0000 (18:35 +0000)
include/feed.php

index 12cf06ca5093d6d674a3569bd76e05f1349c0de9..5676566c422d5538bcde68cc4279f5aff4e9ca39 100644 (file)
@@ -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/");