From a122621c673cd4d3c601542c8b2243655bd5681f Mon Sep 17 00:00:00 2001 From: Pavel Rehak Date: Sun, 27 May 2018 08:08:58 +0200 Subject: [PATCH] Remove executable code from the ini file. t0009 --- bash-ini-parser | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bash-ini-parser b/bash-ini-parser index 6364842..4c0626d 100755 --- a/bash-ini-parser +++ b/bash-ini-parser @@ -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 ["