From: Andrew Dolgov Date: Mon, 16 Jul 2007 12:46:21 +0000 (+0100) Subject: enforce length limits in ttrss_entries X-Git-Tag: 1.2.13~9 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=2544f36b6ffd1f14dc5007ca2710cfd13c4dcccb;p=tt-rss.git enforce length limits in ttrss_entries --- diff --git a/functions.php b/functions.php index fff1b915..1aa6f32b 100644 --- a/functions.php +++ b/functions.php @@ -633,7 +633,8 @@ $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"]);