Skip to content

Commit

Permalink
Discard empty http parameters in mapserver
Browse files Browse the repository at this point in the history
  • 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.
7 changes: 5 additions & 2 deletions src/mapserver/qgsconfigparser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
4 changes: 4 additions & 0 deletions src/mapserver/qgsgetrequesthandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
Expand Down

0 comments on commit f88f721

Please sign in to comment.