From c90f8a05bf792e61db250f210834cdabcc0b7906 Mon Sep 17 00:00:00 2001 From: MHSanaei Date: Mon, 4 May 2026 16:36:33 +0200 Subject: fix(security): sanitize remote IP headers and escape log viewer output #4135 --- web/html/form/inbound.html | 28 ++++++++++++++-------------- web/html/form/protocol/dokodemo.html | 2 +- web/html/form/protocol/hysteria.html | 2 +- web/html/form/protocol/shadowsocks.html | 2 +- web/html/form/protocol/trojan.html | 2 +- web/html/form/protocol/vless.html | 2 +- web/html/form/protocol/vmess.html | 2 +- web/html/form/stream/stream_settings.html | 18 +++++++++--------- web/html/form/tls_settings.html | 2 +- 9 files changed, 30 insertions(+), 30 deletions(-) (limited to 'web/html/form') diff --git a/web/html/form/inbound.html b/web/html/form/inbound.html index 736a1fd4..61d7bc57 100644 --- a/web/html/form/inbound.html +++ b/web/html/form/inbound.html @@ -102,69 +102,69 @@ - {{template "form/sniffing"}} + {{template "form/sniffing" .}} diff --git a/web/html/form/protocol/dokodemo.html b/web/html/form/protocol/dokodemo.html index 4437a3e3..1dbace29 100644 --- a/web/html/form/protocol/dokodemo.html +++ b/web/html/form/protocol/dokodemo.html @@ -32,6 +32,6 @@ {{end}} \ No newline at end of file diff --git a/web/html/form/protocol/hysteria.html b/web/html/form/protocol/hysteria.html index 557ebb43..5613dfc5 100644 --- a/web/html/form/protocol/hysteria.html +++ b/web/html/form/protocol/hysteria.html @@ -1,7 +1,7 @@ {{define "form/hysteria"}} - {{template "form/client"}} + {{template "form/client" .}} diff --git a/web/html/form/protocol/shadowsocks.html b/web/html/form/protocol/shadowsocks.html index 8112222c..12371399 100644 --- a/web/html/form/protocol/shadowsocks.html +++ b/web/html/form/protocol/shadowsocks.html @@ -2,7 +2,7 @@