2 コミット

作成者 SHA1 メッセージ 日付
みてるぞ 88bba81cd6 Merge branch 'main' of http://git.miteruzo.com/miteruzo/nizika 2024-02-23 02:07:54 +09:00
みてるぞ e64d0eb790 攻撃の回避 2024-02-23 02:06:41 +09:00
+4 -3
ファイルの表示
@@ -11,6 +11,7 @@ $page = (int) ($_GET['p'] ?? 1);
$length = (int) ($_GET['max'] ?? 20);
$asc = ($_GET['asc'] ?? 0) != 0;
$keyword = trim ($_GET['q'] ?? '');
$escaped = ($_GET['escaped'] ?? 0) != 0;
$date_start = ($_GET['start'] ?? null) ?: null;
$date_end = ($_GET['end'] ?? null) ?: null;
@@ -25,9 +26,9 @@ if ($f !== false)
$log_data[] = ['date_time' => $dt[0],
'chat_icon' => $chat_info -> author -> imageUrl,
'chat_name' => $chat_info -> author -> name,
'chat_message' => $chat_info -> message,
'answer' => $dt[2]];
'chat_name' => $escaped ? htmlspecialchars ($chat_info -> author -> name) : $chat_info -> author -> name,
'chat_message' => $escaped ? htmlspecialchars ($chat_info -> message) : $chat_info -> message,
'answer' => $escaped ? htmlspecialchars ($dt[2]) : $dt[2]];
}
}