mirror of
https://github.com/friendica/friendica
synced 2024-11-18 23:43:40 +00:00
Properly handle feed item creation date with surrounding whitespace
Some feeds might have whitespace around the creation date. This can't be parsed by DateTimeFormat methods. Therefore the incoming creation date is trimmed to not contain any surrounding whitespace for proper handling. Relates: #12686
This commit is contained in:
parent
3749892f59
commit
da58b894a4
1 changed files with 2 additions and 2 deletions
|
@ -376,11 +376,11 @@ class Feed
|
|||
}
|
||||
|
||||
if ($published != '') {
|
||||
$item['created'] = $published;
|
||||
$item['created'] = trim($published);
|
||||
}
|
||||
|
||||
if ($updated != '') {
|
||||
$item['edited'] = $updated;
|
||||
$item['edited'] = trim($updated);
|
||||
}
|
||||
|
||||
if (!$dryRun) {
|
||||
|
|
Loading…
Reference in a new issue