Merge pull request #31076 from elpaso/pg_raster_authcfg

Accept authcfg with or without quotes
This commit is contained in:
Alessandro Pasotti 2019-08-05 09:21:27 +02:00 committed by GitHub
commit f98b364da6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -272,7 +272,7 @@ QString QgsGdalProvider::dataSourceUri( bool expandAuthConfig ) const
{
QString uri( QgsDataProvider::dataSourceUri() );
// Check for authcfg
QRegularExpression authcfgRe( " authcfg='([^']+)'" );
QRegularExpression authcfgRe( R"raw(authcfg='?([^'\s]+)'?)raw" );
QRegularExpressionMatch match;
if ( uri.contains( authcfgRe, &match ) )
{