mirror of
https://github.com/community-scripts/ProxmoxVE-Local.git
synced 2026-07-15 18:22:17 -04:00
Prefer jq for JSON string encoding when available (uses jq -Rs) to guarantee correct escaping; otherwise use a safer awk-based fallback. Inputs are pre-sanitized to strip ANSI sequences and control characters, and the new awk routine processes characters one-by-one to correctly escape backslashes, quotes and tabs and to join lines as \n, avoiding gsub replacement pitfalls from the previous implementation.
54 KiB
54 KiB