mirror of
https://github.com/launchbadge/sqlx.git
synced 2026-03-21 01:23:59 +00:00
[fix] Urlencode when passing filenames to sqlite3 (#2655)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user