Fix atob issue when xff is undefined (#3147)
CodeQL / Analyze (push) Waiting to run
Codespell / spell-check (push) Waiting to run
editorconfig-checker / editorconfig-checker (push) Waiting to run
Check for merge conflicts / main (push) Waiting to run
Tests / Node (push) Waiting to run

This commit is contained in:
yubiuser
2024-09-22 22:51:05 +02:00
committed by GitHub
+1 -1
View File
@@ -714,7 +714,7 @@ function addAdvancedInfo() {
const advancedInfoTarget = $("#advanced-info");
const isTLS = advancedInfoSource.data("tls");
const clientIP = advancedInfoSource.data("client-ip");
const XForwardedFor = window.atob(advancedInfoSource.data("xff"));
const XForwardedFor = window.atob(advancedInfoSource.data("xff") ?? "");
const starttime = parseFloat(advancedInfoSource.data("starttime"));
const endtime = parseFloat(advancedInfoSource.data("endtime"));
const totaltime = 1e3 * (endtime - starttime);