[fix] Urlencode when passing filenames to sqlite3 (#2655)

This commit is contained in:
Uttarayan Mondal
2023-10-18 00:14:25 +05:30
committed by GitHub
parent b16fbebf2f
commit b85b72355e
3 changed files with 13 additions and 1 deletions

View File

@@ -100,7 +100,11 @@ impl EstablishParams {
}
if !query_params.is_empty() {
filename = format!("file:{}?{}", filename, query_params.join("&"));
filename = format!(
"file:{}?{}",
urlencoding::encode(&filename),
query_params.join("&")
);
flags |= libsqlite3_sys::SQLITE_OPEN_URI;
}