qt: Do not set empty base DN as query of keyserver URL
* lang/qt/src/qgpgmenewcryptoconfig.cpp (parseURL): Only set non-empty base DN as URL query. -- This makes it possible to differentiate an unset query from an empty query. GnuPG-bug-id: 5465
This commit is contained in:
parent
0d03f31e07
commit
1dca8c2b3c
@ -496,8 +496,10 @@ static QUrl parseURL(int mRealArgType, const QString &str)
|
||||
const QString passWord = urlpart_decode(items[3]);
|
||||
if (!passWord.isEmpty()) {
|
||||
url.setPassword(passWord, QUrl::DecodedMode);
|
||||
const auto baseDn = urlpart_decode(items[4]);
|
||||
if (!baseDn.isEmpty()) {
|
||||
url.setQuery(baseDn, QUrl::DecodedMode);
|
||||
}
|
||||
url.setQuery(urlpart_decode(items[4]), QUrl::DecodedMode);
|
||||
if (items.size() >= 6) {
|
||||
const auto flags = urlpart_decode(items[5]);
|
||||
if (!flags.isEmpty()) {
|
||||
|
Loading…
Reference in New Issue
Block a user