Feeds are now trimmed before importing

2022.09-rc
Michael 2017-10-07 18:35:10 +00:00
rodzic ef6a9e953a
commit 67e57a83df
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -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/");