Skip to content
Permalink
Browse files

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 8c8a9e078869dd95bc866fc0f1a6284a6c89ae7c
Showing with 4 additions and 4 deletions.
  1. +4 −4 src/server/qgshttprequesthandler.cpp
@@ -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 );
@@ -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 )
{

0 comments on commit 8c8a9e0

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