Skip to content
Permalink
Browse files
fix QgsDataSourceUri::publicSource() for postgres provider layers
git-svn-id: http://svn.osgeo.org/qgis/trunk@10563 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef committed Apr 14, 2009
1 parent 5450e64 commit 65484a1eee4425215999e89491a96f3d36d68181
Showing with 1 addition and 4 deletions.
  1. +1 −4 src/core/qgsdatasourceuri.cpp
@@ -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, " " );

0 comments on commit 65484a1

Please sign in to comment.