mirror of
https://github.com/wimpysworld/stream-sprout
synced 2026-03-14 14:45:50 +01:00
fix: avoid injection of substitution commands when parsing yaml
This commit is contained in:
parent
f3b1271813
commit
cd6a8185c6
1 changed files with 1 additions and 0 deletions
|
|
@ -46,6 +46,7 @@ function parse_yaml() {
|
|||
w='[a-zA-Z0-9_]*'
|
||||
fs=$'\034'
|
||||
sed -ne "s|^\(${s}\):|\1|" \
|
||||
-e 's|`||g;s|\$||g;' \
|
||||
-e "s|^\(${s}\)\(${w}\)${s}:${s}[\"']\(.*\)[\"']$s\$|\1${fs}\2${fs}\3|p" \
|
||||
-e "s|^\(${s}\)\(${w}\)${s}:${s}\(.*\)${s}\$|\1${fs}\2${fs}\3|p" "${1}" |
|
||||
awk -F"${fs}" '{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue