Skip to content
Snippets Groups Projects
Commit bc9be0d5 authored by Jérôme Charaoui's avatar Jérôme Charaoui
Browse files

Attempt to sanitize the database identifiers

Removing the quote and semicolon characters should be sufficient to
prevent breaking out of the shell command, but this may need reviewed
by someone more knowlegeable in shell scripting.
parent e0b43754
No related branches found
No related tags found
No related merge requests found
......@@ -255,6 +255,9 @@ then
for db in $databases
do
# Sanitize database name
db=$(echo $db | tr -d \'\;)
DUMP_BASE="$MYSQLDUMP $defaultsfile $sqldumpoptions"
# Dumping structure and data
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment