You've already forked bash-ini-parser
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:
committed by
Alberto Fanjul
parent
4dfaa47c68
commit
a122621c67
@@ -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 ["
|
||||
|
Reference in New Issue
Block a user