summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2012-09-09 21:47:58 +0400
committerAndrew Dolgov <[email protected]>2012-09-09 21:47:58 +0400
commit18cf1358e03322cbecd535b16f4a39f788f644af (patch)
tree9c540ef8412ce15cace53576974571d057816366 /include
parentecd5a3c87f547d8a309f429ad0effbcc9f18efcd (diff)
create_published_article: validate url
Diffstat (limited to 'include')
-rw-r--r--include/functions.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/functions.php b/include/functions.php
index 701949fd7..65b794dd8 100644
--- a/include/functions.php
+++ b/include/functions.php
@@ -5585,6 +5585,8 @@
if (!$title) $title = $url;
if (!$title && !$url) return false;
+ if (filter_var($url, FILTER_VALIDATE_URL) === FALSE) return false;
+
$result = db_query($link, "INSERT INTO ttrss_entries
(title, guid, link, updated, content, content_hash, date_entered, date_updated)
VALUES