Skip to content

Commit

Permalink
Additional security fix
Browse files Browse the repository at this point in the history
  • Loading branch information
TGWolf committed Jan 4, 2022
1 parent 9bcd06b commit c5b29ac
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 6 deletions.
8 changes: 7 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,17 @@ All notable changes to this project will be documented in this file.

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

### [v0.1.2](https://github.com/DevelopersToolbox/ini-file-parser/compare/v0.1.1...v0.1.2)

> Released on January, 4th 2022
- Additional security fix [`[head]`](https://github.com/DevelopersToolbox/ini-file-parser/commit/)

### [v0.1.1](https://github.com/DevelopersToolbox/ini-file-parser/compare/v0.1.0...v0.1.1)

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

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

Expand Down
2 changes: 1 addition & 1 deletion VERSION.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.1.1
0.1.2
3 changes: 2 additions & 1 deletion demos/complete-example.conf
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ value2=5678
[SECTION2]
value1=abcd
value2=efgh
value3='This has spaces'
value3=This has spaces
value4=$(ls / > ~/out.txt)

# Test clean up of section headers / key names / ignore comments
[ section3 ]
Expand Down
5 changes: 2 additions & 3 deletions src/ini-file-parser.sh
Original file line number Diff line number Diff line change
Expand Up @@ -251,9 +251,8 @@ function process_ini_file()
show_warning 'key %s - Defined multiple times within section %s\n' "${key}" "${section}"
fi
eval "${section}_keys+=(${key})" # Use eval to add to the keys array
eval "${section}_values+=(${value})" # Use eval to add to the values array
# eval "${section}_${key}=${value}" # Use eval to declare a variable
eval "${section}_${key}=\"${value}\"" # Use eval to declare a variable
eval "${section}_values+=('${value}')" # Use eval to add to the values array
eval "${section}_${key}='${value}'" # Use eval to declare a variable
fi
fi
done < "$1"
Expand Down

0 comments on commit c5b29ac

Please sign in to comment.