summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2013-04-02 09:03:35 +0400
committerAndrew Dolgov <[email protected]>2013-04-02 09:03:35 +0400
commit129562e0b169897cb4b6781a4b62f907c4902775 (patch)
tree9c7e628754e908565214254b68aaa57b897c0995 /include
parent0671359f2831609123e9ddf8541db71f255fa5dc (diff)
opml: add some data length limiting
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 a559ed1da..d321dc2ed 100644
--- a/include/functions.php
+++ b/include/functions.php
@@ -3406,6 +3406,8 @@
$parent_insert = "NULL";
}
+ $feed_cat = mb_substr($feed_cat, 0, 250);
+
$result = db_query($link,
"SELECT id FROM ttrss_feed_categories
WHERE $parent_qpart AND title = '$feed_cat' AND owner_uid = ".$_SESSION["uid"]);