Skip to content
Permalink
Browse files
Discard empty http parameters in mapserver
  • Loading branch information
mhugent committed May 24, 2011
1 parent 7770b68 commit f88f721
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
@@ -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.