]> git.wh0rd.org Git - tt-rss.git/commitdiff
enforce length limits in ttrss_entries
authorAndrew Dolgov <fox@madoka.spb.ru>
Mon, 16 Jul 2007 12:46:21 +0000 (13:46 +0100)
committerAndrew Dolgov <fox@madoka.spb.ru>
Mon, 16 Jul 2007 12:46:21 +0000 (13:46 +0100)
functions.php

index fff1b91514df9afba24f05b38d0616c08d0f498e..1aa6f32b45774df6803f09297f9c688e21b319e7 100644 (file)
 
                                $entry_title = db_escape_string($entry_title);
                                $entry_link = db_escape_string($entry_link);
-                               $entry_comments = db_escape_string($entry_comments);
+                               $entry_comments = mb_substr(db_escape_string($entry_comments), 0, 250);
+                               $entry_author = mb_substr($entry_author, 0, 250);
 
                                $num_comments = db_escape_string($item["slash"]["comments"]);