Skip to content

Commit

Permalink
Accept authcfg with or without quotes
Browse files Browse the repository at this point in the history
Fix #31045
  • Loading branch information
elpaso committed Aug 4, 2019
1 parent 06b24d1 commit 3335419
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/providers/gdal/qgsgdalprovider.cpp
Expand Up @@ -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 ) )
{
Expand Down

0 comments on commit 3335419

Please sign in to comment.