Skip to content
Permalink
Browse files

Discard empty http parameters in mapserver

  • Loading branch information
mhugent committed May 24, 2011
1 parent 7770b68 commit f88f72172450df32a41588b5b14915c69ae79c90
Showing with 9 additions and 2 deletions.
  1. +5 −2 src/mapserver/qgsconfigparser.cpp
  2. +4 −0 src/mapserver/qgsgetrequesthandler.cpp
@@ -437,8 +437,11 @@ QgsComposition* QgsConfigParser::createPrintComposition( const QString& composer
continue;
}

currentLabel->setText( titleIt.value() );
currentLabel->adjustSizeToText();
if( !titleIt.key().isEmpty() ) //no label text replacement with empty key
{
currentLabel->setText( titleIt.value() );
currentLabel->adjustSizeToText();
}
}

return c;
@@ -42,6 +42,10 @@ std::map<QString, QString> QgsGetRequestHandler::parseInput()
{
element = *it;
int sepidx = element.indexOf( "=", 0, Qt::CaseSensitive );
if( sepidx == -1 )
{
continue;
}

key = element.left( sepidx );
value = element.mid( sepidx + 1 );

0 comments on commit f88f721

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