From f90702dfc0a4725d19c4f07c200155538d368f79 Mon Sep 17 00:00:00 2001 From: ypsdf1 Date: Fri, 20 Nov 2026 10:29:09 +0800 Subject: [PATCH] =?UTF-8?q?125=E7=BB=AD15l-8=EF=BC=9A=E4=BF=AEinnerHTML+on?= =?UTF-8?q?click=E5=BC=95=E5=8F=B7=E5=B5=8C=E5=A5=97=E6=88=AA=E6=96=AD?= =?UTF-8?q?=E5=B1=9E=E6=80=A7=E5=80=BC(=E6=A0=B9=E5=9B=A0)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- login.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/login.php b/login.php index 9120b9f..07e8b14 100644 --- a/login.php +++ b/login.php @@ -604,7 +604,10 @@ require_once __DIR__ . '/captcha_guard.php'; applyAgreementUI(); document.getElementById('agreementSection').style.display = AG.need ? 'block' : 'none'; actionsDiv.style.display = 'flex'; - actionsDiv.innerHTML = ''; + // ★ 125 续15l-8:player 用单引号包(HTML 属性值本身用双引号), + // 并对 player 做 HTML 转义防 XSS + 防引号嵌套截断属性值 + const _p = JSON.stringify(player).replace(/"/g, "'"); + actionsDiv.innerHTML = ''; return; } // ★ 已签 / 无协议 → 无感登录:直接跳转(fireAgreementMark 幂等,未签才补写;显式传 player)