Skip to content

Commit

Permalink
fix #17562 broken legend uris
Browse files Browse the repository at this point in the history
  • Loading branch information
rduivenvoorde authored and m-kuhn committed Nov 30, 2017
1 parent ed2e83c commit f6ffb00
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/providers/wms/qgswmsprovider.cpp
Expand Up @@ -175,6 +175,9 @@ QgsWmsProvider::QgsWmsProvider( QString const &uri, const QgsWmsCapabilities *ca

QString QgsWmsProvider::prepareUri( QString uri )
{
// some services provide a percent/url encoded (legend) uri string, always decode here
uri = QUrl::fromPercentEncoding( uri.toUtf8() );

if ( uri.contains( QLatin1String( "SERVICE=WMTS" ) ) || uri.contains( QLatin1String( "/WMTSCapabilities.xml" ) ) )
{
return uri;
Expand Down

0 comments on commit f6ffb00

Please sign in to comment.