Skip to content

Commit 4cca7f4

Browse files
author
jef
committed
fix QgsDataSourceUri::publicSource() for postgres provider layers
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@10563 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent e3ce304 commit 4cca7f4

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/core/qgsdatasourceuri.cpp

+1-4
Original file line numberDiff line numberDiff line change
@@ -183,10 +183,7 @@ QString QgsDataSourceURI::removePassword( const QString& aUri )
183183
QRegExp regexp;
184184
regexp.setMinimal( true );
185185
QString safeName( aUri );
186-
//this works for postgres, ingres, mysql,
187-
if (( aUri.contains( "PG:" ) )
188-
|| ( aUri.contains( "driver=ingres" ) )
189-
|| ( aUri.contains( "MySQL:" ) ) )
186+
if ( aUri.contains( " password=" ) )
190187
{
191188
regexp.setPattern( " password=.* " );
192189
safeName.replace( regexp, " " );

0 commit comments

Comments
 (0)