Skip to content

Commit 39bce94

Browse files
committedNov 10, 2017
Fixes #17400 by returning an empty response if a layer is ignored due to configuration
1 parent 2ca4ee5 commit 39bce94

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/server/services/wms/qgswmsrenderer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1341,7 +1341,7 @@ namespace QgsWms
13411341
}
13421342
}
13431343

1344-
if ( !validLayer )
1344+
if ( !validLayer && !mNicknameLayers.contains( queryLayer ) )
13451345
{
13461346
QString msg = QObject::tr( "Layer '%1' not found" ).arg( queryLayer );
13471347
throw QgsBadRequestException( QStringLiteral( "LayerNotDefined" ), msg );

0 commit comments

Comments
 (0)
Please sign in to comment.