mirror of
https://github.com/friendica/friendica
synced 2024-12-23 04:00:15 +00:00
Feeds are now trimmed before importing
This commit is contained in:
parent
ef6a9e953a
commit
67e57a83df
1 changed files with 1 additions and 1 deletions
|
@ -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/");
|
||||
|
|
Loading…
Reference in a new issue