Skip to content
Permalink
Browse files
qgis server: allow empty strings in filters
  • Loading branch information
mhugent committed Dec 9, 2011
1 parent 1ffe31c commit a6746f140161a145d3c6d1375c8570e469b9e961
Showing with 6 additions and 0 deletions.
  1. +6 −0 src/mapserver/qgswmsserver.cpp
@@ -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( '\'' )

0 comments on commit a6746f1

Please sign in to comment.