1
0
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:
deajan 2013-06-15 13:22:51 +02:00
parent aeb41d2fc3
commit bce13a8392

View File

@ -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
}