Skip to content
Permalink
Browse files

Decode url string

  • Loading branch information
pblottiere committed Jun 28, 2018
1 parent bb26e71 commit bbf7a78453cca095396f9ee2ca3d037e40f7d208
Showing with 6 additions and 1 deletion.
  1. +6 −1 src/server/qgsserverparameters.cpp
@@ -166,9 +166,14 @@ QVariant QgsServerParameters::value( ParameterName name ) const

void QgsServerParameters::load( const QUrlQuery &query )
{
// clean query string first
QUrlQuery cleanQuery( query );
cleanQuery.setQuery( query.query().replace( '+', QStringLiteral( "%20" ) ) );

// load parameters
const QMetaEnum metaEnum( QMetaEnum::fromType<ParameterName>() );

for ( const auto &item : query.queryItems() )
for ( const auto &item : cleanQuery.queryItems( QUrl::FullyDecoded ) )
{
const ParameterName paramName = name( item.first );
if ( paramName >= 0 )

0 comments on commit bbf7a78

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