mirror of
https://github.com/cookiengineer/audacity
synced 2025-04-30 15:49:41 +02:00
Bug 2793 - AUP3 projects fail to compact if project's path contains a single-quote
This commit is contained in:
parent
959d1b8dc2
commit
df91d14c9e
@ -868,7 +868,10 @@ bool ProjectFileIO::CopyTo(const FilePath &destpath,
|
||||
|
||||
// Attach the destination database
|
||||
wxString sql;
|
||||
sql.Printf("ATTACH DATABASE '%s' AS outbound;", destpath.ToUTF8());
|
||||
wxString dbName = destpath;
|
||||
// Bug 2793: Quotes in name need escaping for sqlite3.
|
||||
dbName.Replace( "'", "''");
|
||||
sql.Printf("ATTACH DATABASE '%s' AS outbound;", dbName.ToUTF8());
|
||||
|
||||
rc = sqlite3_exec(db, sql, nullptr, nullptr, nullptr);
|
||||
if (rc != SQLITE_OK)
|
||||
|
Loading…
x
Reference in New Issue
Block a user