diff options
author | Andrew Dolgov <[email protected]> | 2007-07-16 13:46:21 +0100 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2007-07-16 13:46:21 +0100 |
commit | 2544f36b6ffd1f14dc5007ca2710cfd13c4dcccb (patch) | |
tree | 063598ad949a740bf51b8b69a8252f0e146a5587 /functions.php | |
parent | 2e918d9d02990e5a499110d88f9785a1c1d58cf3 (diff) |
enforce length limits in ttrss_entries
Diffstat (limited to 'functions.php')
-rw-r--r-- | functions.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/functions.php b/functions.php index fff1b9151..1aa6f32b4 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"]); |