Skip to content

Commit

Permalink
fix for exporting the database, if password has special characters
Browse files Browse the repository at this point in the history
related to #156
  • Loading branch information
tpokorra committed Nov 26, 2021
1 parent 60d4d28 commit 45feeeb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/classes/Admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,8 @@ public function update_config($request, $response, $args) {

header('Content-Type: application/octet-stream');
header('Content-Disposition: attachment; filename=db-backup-BOF-'.date('Y-m-d_hi').'.sql');
passthru("mysqldump --user=$dbuser --password=$dbpassword --host=$dbhost $dbname");
passthru("mysqldump --user=$dbuser --password='$dbpassword' --host=$dbhost $dbname");
die();

throw new RuntimeException();
}
Expand Down

0 comments on commit 45feeeb

Please sign in to comment.