Add ILIKE filter and % character to safe tokens

This commit is contained in:
giohappy 2014-03-18 11:58:09 +01:00
parent f337dd35c8
commit f61f250c5d

View File

@ -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 )
{