Skip to content
Permalink
Browse files

Merge pull request #1250 from giohappy/master

Add ILIKE filter and % character to safe tokens
  • Loading branch information
mhugent committed Mar 18, 2014
2 parents ef3189e + f61f250 commit 3094175bd97b26432e345eaa10e723d558aa33eb
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/mapserver/qgswmsserver.cpp
@@ -2009,10 +2009,12 @@ bool QgsWMSServer::testFilterStringSafety( const QString& filter ) const
|| tokenIt->compare( "<=" ) == 0
|| tokenIt->compare( ">" ) == 0
|| tokenIt->compare( ">=" ) == 0
|| tokenIt->compare( "%" ) == 0
|| tokenIt->compare( "AND", Qt::CaseInsensitive ) == 0
|| tokenIt->compare( "OR", Qt::CaseInsensitive ) == 0
|| tokenIt->compare( "IN", Qt::CaseInsensitive ) == 0
|| tokenIt->compare( "LIKE", Qt::CaseInsensitive ) == 0
|| tokenIt->compare( "ILIKE", Qt::CaseInsensitive ) == 0
|| tokenIt->compare( "DMETAPHONE", Qt::CaseInsensitive ) == 0
|| tokenIt->compare( "SOUNDEX", Qt::CaseInsensitive ) == 0 )
{

0 comments on commit 3094175

Please sign in to comment.
You can’t perform that action at this time.