You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix ENC 'echo' script template to prevent expansion
Currently the template script for creating the 'echo' script used for
ENC data wraps the data provided by the actual ENC in `cat <<-EOF`,
which causes the enclosed data to be variable-expanded, escape
characters (like double backslashes) to be replaced with their
concrete representations, etc.
This breaks things horribly if you have (e.g.) JSON data with
escaped strings (`"C:\\Windows"`), which will be processed and
output without those escapes (`"C:\Windows"`), which is invalid,
and definitely not what the user intended under any circumstance.
Using the 'quoted' variant of shell heredocs (`cat <<-'EOF'`) stops
this expansion.
0 commit comments