Repository navigation
fix(docker): preserve WebUI label values on 7.4 - #2866
Conversation
🔧 PR Test Plugin AvailableA test plugin has been generated for this PR that includes the modified files. Version: 📥 Installation Instructions:Install via Unraid Web UI:
Alternative: Direct Download
|
|
No actionable comments were generated in the recent review. WalkthroughThe changes update how Docker context-menu URL values are encoded and escaped. They also update Tailscale status tooltip escaping to substitute invalid UTF-8 sequences. ChangesOutput escaping
Estimated code review effort: 2 (Simple) | ~10 minutes Change: Bug fix Suggested reviewers: Merge Risk:
|
Docker WebUI and Tailscale WebUI menu actions now preserve configured label values containing quotes, entities, line breaks or other punctuation. The values are encoded as JavaScript strings and then for the enclosing HTML attribute. Labels remain undecoded until the existing menu action receives them.
The existing plain-text Tailscale tooltip behavior is retained, including line breaks; malformed UTF-8 uses replacement characters. Existing URL handling and placeholders are unchanged.
Validation: six local Chromium fixture cases passed using the product PHP output expressions, Docker menu JavaScript, jQuery, context menu and tooltip components. Checks verified exact values passed to menu actions, literal tooltip text and no elements created from label contents. Desktop and narrow fixture captures were inspected. PHP syntax and diff checks passed. These fixtures do not qualify a running Docker appliance or full container workflow; published-preview QA remains pending.
Tracks OS-1048 (7.4), child of OS-1047. Related 7.3 implementation: #2853 (OS-1049). This is a separate 7.4 implementation on master, preserving that line's existing tooltip behavior.
Summary by CodeRabbit