Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bugfix] Fix double escaping of colon in QgsMimeDataUtils #7261

Merged
merged 4 commits into from
Jun 19, 2018

Conversation

elpaso
Copy link
Contributor

@elpaso elpaso commented Jun 18, 2018

Fixes #19195 - WMS layer loaded in incorrect CRS when using drag and drop from Browser panel

Fixes qgis#19195 - WMS layer loaded in incorrect CRS when using drag and drop from Browser panel
@elpaso elpaso changed the title [bugfix] Fix double escping of colon in QgsMimeDataUtils [bugfix] Fix double escaping of colon in QgsMimeDataUtils Jun 18, 2018
@@ -206,11 +206,13 @@ QByteArray QgsMimeDataUtils::layerTreeNodesToUriList( const QList<QgsLayerTreeNo
QString QgsMimeDataUtils::encode( const QStringList &items )
{
QString encoded;
// Do not escape colon twice
QRegExp re( "([^\\\\]):" );
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use the recommended replacement QRegularExpression instead.

This could possibly be made a bit cleaner by a negative look behind.

@nyalldawson nyalldawson added this to the 3.2 milestone Jun 19, 2018
@elpaso elpaso merged commit 5797c49 into qgis:master Jun 19, 2018
@elpaso elpaso deleted the bugfix-19195-wms-drag branch June 19, 2018 09:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants