Skip to content

Commit 7813f6b

Browse files
committed
Escape backslash for mime data. Fix MS SQL drag and drop
1 parent 67c9a72 commit 7813f6b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/core/qgsmimedatautils.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ QString QgsMimeDataUtils::Uri::data() const
9191
QString escapedName = name;
9292
QString escapeUri = uri;
9393
escapedName.replace( ":", "\\:" );
94+
escapeUri.replace( "\\", "\\\\" );
9495
escapeUri.replace( ":", "\\:" );
9596
return layerType + ":" + providerKey + ":" + escapedName + ":" + escapeUri;
9697
}

0 commit comments

Comments
 (0)