Skip to content
Permalink
Browse files

Make QgsDataSourceURI uri string parser skip invalid portions instead…

… of skipping the entire string
  • Loading branch information
manisandro authored and m-kuhn committed Sep 9, 2015
1 parent fc0843c commit 258851af9924206f1087657d6e680bf1c20245ac
Showing with 2 additions and 3 deletions.
  1. +2 −3 src/core/qgsdatasourceuri.cpp
@@ -64,8 +64,8 @@ QgsDataSourceURI::QgsDataSourceURI( QString uri )

if ( i == uri.length() || uri[i] != '=' )
{
QgsDebugMsg( "= expected after parameter name" );
return;
QgsDebugMsg( QString( "= expected after parameter name, skipping text '%1'" ).arg( pname ) );
continue;
}

i++;
@@ -101,7 +101,6 @@ QgsDataSourceURI::QgsDataSourceURI( QString uri )
i++;

int start = i;
QString col;
while ( i < uri.length() && uri[i] != ')' )
{
if ( uri[i] == '\\' )

0 comments on commit 258851a

Please sign in to comment.
You can’t perform that action at this time.