From: Andrew Dolgov Date: Wed, 22 Nov 2006 07:21:12 +0000 (+0100) Subject: parse author tag like dc:creator X-Git-Tag: 1.2.6~42 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=bbb416e58b08ae8ad8f7fe30fd83a410ad2d3fad;p=tt-rss.git parse author tag like dc:creator --- diff --git a/functions.php b/functions.php index da64737e..3c131b07 100644 --- a/functions.php +++ b/functions.php @@ -551,8 +551,13 @@ $content_hash = "SHA1:" . sha1(strip_tags($entry_content)); $entry_comments = strip_tags($item["comments"]); - + $entry_author = db_escape_string(strip_tags($item['dc']['creator'])); + + if (!$entry_author) { + $entry_author = db_escape_string(strip_tags($item['author'])); + } + $entry_guid = db_escape_string(strip_tags($entry_guid)); $result = db_query($link, "SELECT id FROM ttrss_entries