Skip to content

Commit

Permalink
[server] Keep default version in case of invalid VERSION parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
pblottiere committed May 15, 2018
1 parent 58e5351 commit db4a2dd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/server/services/wms/qgswms.cpp
Expand Up @@ -67,7 +67,8 @@ namespace QgsWms
}

// Set the default version
if ( versionString.isEmpty() )
const bool valid = versionString.compare( "1.1.1" ) == 0 || versionString.compare( "1.3.0" ) == 0;
if ( versionString.isEmpty() || !valid )
{
versionString = mVersion;
}
Expand Down

0 comments on commit db4a2dd

Please sign in to comment.