Skip to content

Commit c5b29ac

Browse files
committed
Additional security fix
1 parent 9bcd06b commit c5b29ac

File tree

4 files changed

+12
-6
lines changed

4 files changed

+12
-6
lines changed

CHANGELOG.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,17 @@ All notable changes to this project will be documented in this file.
55

66
This changelog was automatically generated using [Caretaker](https://github.com/DevelopersToolbox/caretaker) by [Wolf Software](https://github.com/WolfSoftware)
77

8+
### [v0.1.2](https://github.com/DevelopersToolbox/ini-file-parser/compare/v0.1.1...v0.1.2)
9+
10+
> Released on January, 4th 2022
11+
12+
- Additional security fix [`[head]`](https://github.com/DevelopersToolbox/ini-file-parser/commit/)
13+
814
### [v0.1.1](https://github.com/DevelopersToolbox/ini-file-parser/compare/v0.1.0...v0.1.1)
915

1016
> Released on January, 3rd 2022
1117
12-
- Updated to fix issue #1 [`[head]`](https://github.com/DevelopersToolbox/ini-file-parser/commit/)
18+
- Updated to fix issue #1 [`[9bcd06b]`](https://github.com/DevelopersToolbox/ini-file-parser/commit/9bcd06b3c630a25f9f8940c778f345a6d81f7624)
1319

1420
- rebrand [`[95e9817]`](https://github.com/DevelopersToolbox/ini-file-parser/commit/95e981711406b5787269baa7070f6e1974dd9a31)
1521

VERSION.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.1.1
1+
0.1.2

demos/complete-example.conf

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ value2=5678
1919
[SECTION2]
2020
value1=abcd
2121
value2=efgh
22-
value3='This has spaces'
22+
value3=This has spaces
23+
value4=$(ls / > ~/out.txt)
2324

2425
# Test clean up of section headers / key names / ignore comments
2526
[ section3 ]

src/ini-file-parser.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -251,9 +251,8 @@ function process_ini_file()
251251
show_warning 'key %s - Defined multiple times within section %s\n' "${key}" "${section}"
252252
fi
253253
eval "${section}_keys+=(${key})" # Use eval to add to the keys array
254-
eval "${section}_values+=(${value})" # Use eval to add to the values array
255-
# eval "${section}_${key}=${value}" # Use eval to declare a variable
256-
eval "${section}_${key}=\"${value}\"" # Use eval to declare a variable
254+
eval "${section}_values+=('${value}')" # Use eval to add to the values array
255+
eval "${section}_${key}='${value}'" # Use eval to declare a variable
257256
fi
258257
fi
259258
done < "$1"

0 commit comments

Comments
 (0)