Skip to content

Commit a6746f1

Browse files
committed
qgis server: allow empty strings in filters
1 parent 1ffe31c commit a6746f1

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/mapserver/qgswmsserver.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1776,6 +1776,12 @@ bool QgsWMSServer::testFilterStringSafety( const QString& filter ) const
17761776

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

1779+
//empty strings are ok
1780+
if ( *tokenIt == "''" )
1781+
{
1782+
continue;
1783+
}
1784+
17791785
//single quote
17801786
if ( tokenIt->size() > 2
17811787
&& ( *tokenIt )[0] == QChar( '\'' )

0 commit comments

Comments
 (0)