1
0
mirror of https://github.com/albfan/bash-ini-parser.git synced 2025-08-10 16:22:59 +03:00

Remove executable code from the ini file.

t0009
This commit is contained in:
Pavel Rehak
2018-05-27 08:08:58 +02:00
committed by Alberto Fanjul
parent 4dfaa47c68
commit a122621c67

View File

@@ -26,6 +26,8 @@ function cfg_parser {
fi
ini="$(<$1)" # read the file
ini=${ini//$'\r'/} # remove linefeed i.e dos2unix
ini="${ini//$/}" # remove executable
ini="${ini//'`'/}" # remove executable
ini="${ini//[/\\[}"
debug "escaped ["