mirror of
https://github.com/deajan/obackup.git
synced 2024-12-04 20:53:41 +01:00
Fixed an security issue with LoadConfigFile processing original config file instead of filtered one.
This commit is contained in:
parent
aeb41d2fc3
commit
bce13a8392
@ -165,7 +165,7 @@ function LoadConfigFile
|
||||
LogError "Wrong configuration file supplied [$1]. Backup cannot start."
|
||||
else
|
||||
egrep '^#|^[^ ]*=[^;&]*' "$1" > "/dev/shm/obackup_config_$SCRIPT_PID"
|
||||
source $1
|
||||
source "/dev/shm/obackup_config_$SCRIPT_PID"
|
||||
fi
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user