1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 17:35:56 +00:00

event log: simplify styles, prevent horizontal scrolling

sql logger: clip context length to 8kb
This commit is contained in:
Andrew Dolgov
2019-05-31 10:31:43 +03:00
parent 4a2836ea90
commit d36b64d8a7
10 changed files with 52 additions and 33 deletions

View File

@@ -12,8 +12,8 @@ class Logger_SQL {
$owner_uid = $_SESSION["uid"] ? $_SESSION["uid"] : null;
if (DB_TYPE == "mysql")
$context = substr($context, 0, 65534);
// limit context length, DOMDocument dumps entire XML in here sometimes, which may be huge
$context = mb_substr($context, 0, 8192);
// passed error message may contain invalid unicode characters, failing to insert an error here
// would break the execution entirely by generating an actual fatal error instead of a E_WARNING etc