1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2026-01-03 10:39:15 +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

View File

@@ -54,7 +54,7 @@ class Pref_System extends Handler_Protected {
</tr>";
while ($line = $res->fetch()) {
print "<tr class=\"errrow\">";
print "<tr>";
foreach ($line as $k => $v) {
$line[$k] = htmlspecialchars($v);