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:
@@ -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
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user