]> git.wh0rd.org - tt-rss.git/commitdiff
fix escaping of entry_author for simplepie (closes #190)
authorAndrew Dolgov <fox@madoka.spb.ru>
Wed, 13 Feb 2008 09:27:09 +0000 (10:27 +0100)
committerAndrew Dolgov <fox@madoka.spb.ru>
Wed, 13 Feb 2008 09:27:09 +0000 (10:27 +0100)
functions.php

index 22ea8cb674790504b89651f05b23d7c0c517cf00..1ca8169afdb1a6637791cc8485eff2afc9ac4bb7 100644 (file)
                                                $entry_author_item = $item->get_author();
                                                $entry_author = $entry_author_item->get_name();
                                                if (!$entry_author) $entry_author = $entry_author_item->get_email();
+
+                                               $entry_author = db_escape_string($entry_author);
                                        }
                                } else {
                                        $entry_comments = strip_tags($item["comments"]);