From bbb416e58b08ae8ad8f7fe30fd83a410ad2d3fad Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Wed, 22 Nov 2006 08:21:12 +0100 Subject: [PATCH] parse author tag like dc:creator --- functions.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/functions.php b/functions.php index da64737eb..3c131b070 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