Skip to content

Commit dd688a5

Browse files
mhugentrldhont
authored andcommittedDec 12, 2016
WMS 1.3 compliance: Each OnlineResource URL intended for HTTP Get requests in the capabilities document is a URL prefix
1 parent 291f1b6 commit dd688a5

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed
 

‎src/server/qgswmsserver.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -423,6 +423,12 @@ QDomDocument QgsWMSServer::getCapabilities( QString version, bool fullProjectInf
423423
hrefString = serviceUrl();
424424
}
425425

426+
//href needs to be a prefix
427+
if ( !hrefString.endsWith( "?" ) && !hrefString.endsWith( "&" ) )
428+
{
429+
hrefString.append( hrefString.contains( "?" ) ? "&" : "?" );
430+
}
431+
426432
if ( version == "1.1.1" )
427433
{
428434
doc = QDomDocument( "WMT_MS_Capabilities SYSTEM 'http://schemas.opengis.net/wms/1.1.1/WMS_MS_Capabilities.dtd'" ); //WMS 1.1.1 needs DOCTYPE "SYSTEM http://schemas.opengis.net/wms/1.1.1/WMS_MS_Capabilities.dtd"

0 commit comments

Comments
 (0)
Please sign in to comment.