Skip to content

Commit

Permalink
qgis server: allow empty strings in filters
Browse files Browse the repository at this point in the history
  • Loading branch information
mhugent committed Dec 9, 2011
1 parent 1ffe31c commit a6746f1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/mapserver/qgswmsserver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1776,6 +1776,12 @@ bool QgsWMSServer::testFilterStringSafety( const QString& filter ) const

//numeric strings need to be quoted once either with single or with double quotes

//empty strings are ok
if ( *tokenIt == "''" )
{
continue;
}

//single quote
if ( tokenIt->size() > 2
&& ( *tokenIt )[0] == QChar( '\'' )
Expand Down

0 comments on commit a6746f1

Please sign in to comment.