Skip to content

Commit

Permalink
* Fix database backup escape special character
Browse files Browse the repository at this point in the history
  • Loading branch information
jprzimba committed Jan 15, 2025
1 parent 60345f5 commit 1b3306c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/database/database.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,8 @@ void Database::createDatabaseBackup(bool compress) const {
std::ofstream configFile(tempConfigFile);
if (configFile.is_open()) {
configFile << "[client]\n";
configFile << "user=" << g_configManager().getString(MYSQL_USER) << "\n";
configFile << "password=" << g_configManager().getString(MYSQL_PASS) << "\n";
configFile << "user=\"" << g_configManager().getString(MYSQL_USER) << "\"\n";
configFile << "password=\"" << g_configManager().getString(MYSQL_PASS) << "\"\n";
configFile << "host=" << g_configManager().getString(MYSQL_HOST) << "\n";
configFile << "port=" << g_configManager().getNumber(SQL_PORT) << "\n";
configFile.close();
Expand Down

0 comments on commit 1b3306c

Please sign in to comment.