Skip to content

Commit

Permalink
QgsMimeDataUtils::encode fix (escape also backslash)
Browse files Browse the repository at this point in the history
  • Loading branch information
blazek committed Apr 23, 2015
1 parent 4bc7402 commit a2d673f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/core/qgsmimedatautils.cpp
Expand Up @@ -44,6 +44,7 @@ QgsMimeDataUtils::Uri::Uri( QgsLayerItem* layerItem )

QgsMimeDataUtils::Uri::Uri( QString& encData )
{
QgsDebugMsg( "encData: " + encData );
QStringList decoded = decode( encData );
if ( decoded.size() < 4 )
return;
Expand Down Expand Up @@ -119,6 +120,7 @@ QString QgsMimeDataUtils::encode( const QStringList& items )
foreach ( const QString& item, items )
{
QString str = item;
str.replace( "\\", "\\\\" );
str.replace( ":", "\\:" );
encoded += str + ":";
}
Expand Down

0 comments on commit a2d673f

Please sign in to comment.