mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-06-06 21:24:10 +00:00
- Quote all YAML string values with %q to prevent injection - Remove unused host parameter from GetClash - Add backend path normalization for SubClashPath - Log StreamSettings JSON unmarshal errors - Expand template panel by default and provide default template
834 B
834 B
Fix Clash YAML Subscription Code Quality Issues
Date: 2026-04-24 Type: bugfix / code-quality Version: v1.5.3-beta
Issues Fixed
- YAML injection (C2): All string values in Clash YAML generation changed from
%sto%qfor proper quoting - Unused parameter (I1): Removed unused
hostparameter fromGetClashmethod - Path validation (I3): Added backend normalization for
SubClashPath(auto-add leading/trailing/) - Silent JSON error (I4): Added warning log when
StreamSettingsJSON unmarshal fails - Template visibility: Clash YAML template panel now expanded by default
- Default template: Added sensible default Clash YAML template in settings defaults
Note
C1 from review (nil inboundService panic) was a false alarm — InboundService is a value type, not a pointer.