mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-02 00:04:53 -04:00
Escape single quotes in quick search in attribute table
git-svn-id: http://svn.osgeo.org/qgis/trunk@13180 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
parent
c39ef3de32
commit
188bbc70a7
@ -604,7 +604,7 @@ void QgsAttributeTableDialog::search()
|
||||
else
|
||||
str += " ~ '";
|
||||
|
||||
str += mQuery->displayText();
|
||||
str += mQuery->displayText().replace("'", "''"); // escape quotes
|
||||
str += "'";
|
||||
|
||||
doSearch( str );
|
||||
|
Loading…
x
Reference in New Issue
Block a user