mbproxy: fix dashboard review findings, add named BCD tags + fleet config
Reviewed the new SignalR dashboard and fixed its two top findings: a stored XSS on the connection-detail page (unescaped tag name / direction / timestamp rendered into innerHTML) and FC03/FC04 cache hits bypassing the debug-view capture, which left cached tags frozen while their age climbed. Also adds an optional human-friendly Name to BCD tags surfaced on the debug view, and loads the real fleet config from tags.txt (12 named BCD tags, PLC Z28061) so the published appsettings.json is deploy-ready. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -67,6 +67,7 @@ internal sealed class StatusSnapshotBuilder
|
||||
return new TagValueDto(
|
||||
Address: o.Address,
|
||||
Width: o.Width,
|
||||
Name: o.Name,
|
||||
HasValue: hasValue,
|
||||
Direction: o.Direction == CaptureDirection.Write ? "write" : "read",
|
||||
RawHex: rawHex,
|
||||
|
||||
Reference in New Issue
Block a user