1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-19 20:01:30 +00:00

atom author field parsing fixes

This commit is contained in:
Andrew Dolgov
2006-12-25 09:18:34 +01:00
parent 49f9c92303
commit 83f114c8b9

View File

@@ -513,9 +513,21 @@
$entry_author = db_escape_string(strip_tags($item['dc']['creator']));
if ($item['author']) {
if (!$entry_author) {
$entry_author = db_escape_string(strip_tags($item['author']['name']));
}
if (!$entry_author) {
$entry_author = db_escape_string(strip_tags($item['author']['email']));
}
if (!$entry_author) {
$entry_author = db_escape_string(strip_tags($item['author']));
}
}
if (preg_match('/^[\t\n\r ]*$/', $entry_author)) $entry_author = '';
$entry_guid = db_escape_string(strip_tags($entry_guid));