We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3af4c3d commit 1e77bc7Copy full SHA for 1e77bc7
1 file changed
src/CipherSettings.cpp
@@ -16,7 +16,11 @@ std::string CipherSettings::getPassword() const
16
return sqlb::escapeString(password);
17
} else {
18
// Remove the '0x' part at the beginning
19
- return "\"x'" + password.substr(2) + "'\"";
+ if (password.length() > 2) {
20
+ return "\"x'" + password.substr(2) + "'\"";
21
+ }
22
+
23
+ return "''";
24
}
25
26
0 commit comments