mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-19 11:41:29 +00:00
atom author field parsing fixes
This commit is contained in:
@@ -513,10 +513,22 @@
|
|||||||
|
|
||||||
$entry_author = db_escape_string(strip_tags($item['dc']['creator']));
|
$entry_author = db_escape_string(strip_tags($item['dc']['creator']));
|
||||||
|
|
||||||
if (!$entry_author) {
|
if ($item['author']) {
|
||||||
$entry_author = db_escape_string(strip_tags($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));
|
$entry_guid = db_escape_string(strip_tags($entry_guid));
|
||||||
|
|
||||||
$result = db_query($link, "SELECT id FROM ttrss_entries
|
$result = db_query($link, "SELECT id FROM ttrss_entries
|
||||||
|
|||||||
Reference in New Issue
Block a user