Skip to content

Commit

Permalink
Merge pull request #1250 from giohappy/master
Browse files Browse the repository at this point in the history
Add ILIKE filter and % character to safe tokens
  • Loading branch information
mhugent committed Mar 18, 2014
2 parents ef3189e + f61f250 commit 3094175
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/mapserver/qgswmsserver.cpp
Expand Up @@ -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 )
{
Expand Down

0 comments on commit 3094175

Please sign in to comment.