]> git.wh0rd.org - tt-rss.git/commitdiff
escape $entry_guid before checking in database
authorAndrew Dolgov <fox@madoka.spb.ru>
Fri, 2 Sep 2005 00:57:23 +0000 (01:57 +0100)
committerAndrew Dolgov <fox@madoka.spb.ru>
Fri, 2 Sep 2005 00:57:23 +0000 (01:57 +0100)
functions.php

index 7c5f4084bbd5fc6e8f9efe68793b1e4918dfaee6..ab9b571feb9ede107442e2395f87caaa2a245d48 100644 (file)
 
                                $entry_comments = $item["comments"];
 
+                               $entry_guid = pg_escape_string($entry_guid);
+
                                $result = pg_query($link, "
                                        SELECT 
                                                id,last_read,no_orig_date,title,feed_id,content_hash,
 
                                if (pg_num_rows($result) == 0) {
 
-                                       $entry_guid = pg_escape_string($entry_guid);
+                                       //$entry_guid = pg_escape_string($entry_guid);
                                        $entry_content = pg_escape_string($entry_content);
                                        $entry_title = pg_escape_string($entry_title);
                                        $entry_link = pg_escape_string($entry_link);