mirror of
https://github.com/qgis/QGIS.git
synced 2025-03-01 00:46:20 -05:00
Add ILIKE filter and % character to safe tokens
This commit is contained in:
parent
f337dd35c8
commit
f61f250c5d
@ -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 )
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user