Skip to content
Permalink
Browse files

QgsMimeDataUtils::encode fix (escape also backslash)

  • Loading branch information
blazek committed Apr 23, 2015
1 parent 1ac4b25 commit 95e5a4f341beeb30454e86988fdf9afd31bb7ca4
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/core/qgsmimedatautils.cpp
@@ -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;
@@ -119,6 +120,7 @@ QString QgsMimeDataUtils::encode( const QStringList& items )
foreach ( const QString& item, items )
{
QString str = item;
str.replace( "\\", "\\\\" );
str.replace( ":", "\\:" );
encoded += str + ":";
}

0 comments on commit 95e5a4f

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