Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
server: fix parsing of bbox numbers in scientific notation containing +
(reverts 905561f)
  • Loading branch information
jef-n committed Mar 20, 2015
1 parent 3552b83 commit 8c8a9e0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/server/qgshttprequesthandler.cpp
Expand Up @@ -505,7 +505,7 @@ void QgsHttpRequestHandler::requestStringToParameterMap( const QString& request,
parameters.clear();


//insert key and value into the map (parameters are separated by &
//insert key and value into the map (parameters are separated by &)
foreach ( QString element, request.split( "&" ) )
{
int sepidx = element.indexOf( "=", 0, Qt::CaseSensitive );
Expand All @@ -515,10 +515,10 @@ void QgsHttpRequestHandler::requestStringToParameterMap( const QString& request,
}

QString key = element.left( sepidx );
key = QUrl::fromPercentEncoding( key.toLocal8Bit() ); //replace encoded special characters and utf-8 encodings

QString value = element.mid( sepidx + 1 );
value.replace( "+", " " );
value = QUrl::fromPercentEncoding( value.toLocal8Bit() ); //replace encoded special caracters and utf-8 encodings
key = QUrl::fromPercentEncoding( key.toLocal8Bit() ); //replace encoded special caracters and utf-8 encodings
value = QUrl::fromPercentEncoding( value.toLocal8Bit() ); //replace encoded special characters and utf-8 encodings

if ( key.compare( "SLD_BODY", Qt::CaseInsensitive ) == 0 )
{
Expand Down

0 comments on commit 8c8a9e0

Please sign in to comment.