Merge pull request #12687 from DanielSiepmann/12686-fix-feed-creation-date-with-whitespace

Properly handle feed item creation date with surrounding whitespace
This commit is contained in:
Hypolite Petovan 2023-01-17 10:19:02 -05:00 committed by GitHub
commit 02a1b4eb17
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -376,11 +376,11 @@ class Feed
} }
if ($published != '') { if ($published != '') {
$item['created'] = $published; $item['created'] = trim($published);
} }
if ($updated != '') { if ($updated != '') {
$item['edited'] = $updated; $item['edited'] = trim($updated);
} }
if (!$dryRun) { if (!$dryRun) {