summaryrefslogtreecommitdiff
path: root/functions.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2005-09-02 01:57:23 +0100
committerAndrew Dolgov <[email protected]>2005-09-02 01:57:23 +0100
commit2651fc4fc39beccd7879e33486da6655442dccea (patch)
tree449434bbf87572ec2e26d8c0a040b86f1c7b2ff6 /functions.php
parent69bd019d1b06f2b8f146b4d59b3fd9e0604e3da4 (diff)
escape $entry_guid before checking in database
Diffstat (limited to 'functions.php')
-rw-r--r--functions.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/functions.php b/functions.php
index 7c5f4084b..ab9b571fe 100644
--- a/functions.php
+++ b/functions.php
@@ -155,6 +155,8 @@
$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,
@@ -166,7 +168,7 @@
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);