"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/core/qgsdatasourceuri.cpp" between
QGIS-final-3_10_11.tar.gz and QGIS-final-3_10_12.tar.gz

About: QGIS (Quantum GIS) is a Geographic Information System that supports vector, raster, and database formats. Long-term release (3.10.x series).

qgsdatasourceuri.cpp  (QGIS-final-3_10_11):qgsdatasourceuri.cpp  (QGIS-final-3_10_12)
skipping to change at line 613 skipping to change at line 613
void QgsDataSourceUri::setEncodedUri( const QByteArray &uri ) void QgsDataSourceUri::setEncodedUri( const QByteArray &uri )
{ {
mParams.clear(); mParams.clear();
mUsername.clear(); mUsername.clear();
mPassword.clear(); mPassword.clear();
mAuthConfigId.clear(); mAuthConfigId.clear();
QUrl url; QUrl url;
url.setEncodedQuery( uri ); url.setEncodedQuery( uri );
url.setQuery( QString::fromLatin1( uri ) );
const QUrlQuery query( url );
const auto constQueryItems = url.queryItems(); const auto constQueryItems = query.queryItems( QUrl::ComponentFormattingOption ::FullyDecoded );
for ( const QPair<QString, QString> &item : constQueryItems ) for ( const QPair<QString, QString> &item : constQueryItems )
{ {
if ( item.first == QLatin1String( "username" ) ) if ( item.first == QLatin1String( "username" ) )
mUsername = item.second; mUsername = item.second;
else if ( item.first == QLatin1String( "password" ) ) else if ( item.first == QLatin1String( "password" ) )
mPassword = item.second; mPassword = item.second;
else if ( item.first == QLatin1String( "authcfg" ) ) else if ( item.first == QLatin1String( "authcfg" ) )
mAuthConfigId = item.second; mAuthConfigId = item.second;
else else
mParams.insertMulti( item.first, item.second ); mParams.insertMulti( item.first, item.second );
 End of changes. 2 change blocks. 
1 lines changed or deleted 3 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)