1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 07:25:54 +00:00

logger/sql: limit maximum context length on mysql because mysql

This commit is contained in:
Andrew Dolgov
2019-02-24 07:26:14 +03:00
parent c1ab51d6f8
commit 25671ad567

View File

@@ -12,6 +12,9 @@ class Logger_SQL {
$owner_uid = $_SESSION["uid"] ? $_SESSION["uid"] : null;
if (DB_TYPE == "mysql")
$context = substr($context, 0, 65534);
$sth = $this->pdo->prepare("INSERT INTO ttrss_error_log
(errno, errstr, filename, lineno, context, owner_uid, created_at) VALUES
(?, ?, ?, ?, ?, ?, NOW())");