Skip to content
Permalink
Browse files

checking with case-insensitive the metadata tags, as suggested by @ti…

  • Loading branch information
Samweli committed Dec 23, 2019
1 parent 10532ac commit e8c3a8c987eb682f7bb92849889e8e53905d4123
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/providers/wms/qgswmscapabilities.cpp
@@ -770,14 +770,14 @@ void QgsWmsCapabilities::parseMetadataUrl( const QDomElement &element, QgsWmsMet
if ( !nodeElement.isNull() )
{
QString tagName = nodeElement.tagName();
if ( tagName.startsWith( QLatin1String( "wms:" ) ) )
if ( tagName.startsWith( QLatin1String( "wms:" ), Qt::CaseInsensitive ) )
tagName = tagName.mid( 4 );

if ( tagName == QLatin1String( "Format" ) )
if ( tagName.compare( QLatin1String( "Format" ), Qt::CaseInsensitive ) == 0 )
{
metadataUrlProperty.format = nodeElement.text();
}
else if ( tagName == QLatin1String( "OnlineResource" ) )
else if ( tagName.compare( QLatin1String( "OnlineResource" ), Qt::CaseInsensitive ) == 0 )
{
parseOnlineResource( nodeElement, metadataUrlProperty.onlineResource );
}

0 comments on commit e8c3a8c

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