Skip to content

Commit 8c8a9e0

Browse files
committed
server: fix parsing of bbox numbers in scientific notation containing +
(reverts 905561f)
1 parent 3552b83 commit 8c8a9e0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/server/qgshttprequesthandler.cpp

+4-4
Original file line numberDiff line numberDiff line change
@@ -505,7 +505,7 @@ void QgsHttpRequestHandler::requestStringToParameterMap( const QString& request,
505505
parameters.clear();
506506

507507

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

517517
QString key = element.left( sepidx );
518+
key = QUrl::fromPercentEncoding( key.toLocal8Bit() ); //replace encoded special characters and utf-8 encodings
519+
518520
QString value = element.mid( sepidx + 1 );
519-
value.replace( "+", " " );
520-
value = QUrl::fromPercentEncoding( value.toLocal8Bit() ); //replace encoded special caracters and utf-8 encodings
521-
key = QUrl::fromPercentEncoding( key.toLocal8Bit() ); //replace encoded special caracters and utf-8 encodings
521+
value = QUrl::fromPercentEncoding( value.toLocal8Bit() ); //replace encoded special characters and utf-8 encodings
522522

523523
if ( key.compare( "SLD_BODY", Qt::CaseInsensitive ) == 0 )
524524
{

0 commit comments

Comments
 (0)