Skip to content

Commit

Permalink
fix QgsDataSourceUri::publicSource() for postgres provider layers
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@10563 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef committed Apr 14, 2009
1 parent e3ce304 commit 4cca7f4
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/core/qgsdatasourceuri.cpp
Expand Up @@ -183,10 +183,7 @@ QString QgsDataSourceURI::removePassword( const QString& aUri )
QRegExp regexp;
regexp.setMinimal( true );
QString safeName( aUri );
//this works for postgres, ingres, mysql,
if (( aUri.contains( "PG:" ) )
|| ( aUri.contains( "driver=ingres" ) )
|| ( aUri.contains( "MySQL:" ) ) )
if ( aUri.contains( " password=" ) )
{
regexp.setPattern( " password=.* " );
safeName.replace( regexp, " " );
Expand Down

0 comments on commit 4cca7f4

Please sign in to comment.