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:
wonder 2010-03-28 10:17:33 +00:00
parent c39ef3de32
commit 188bbc70a7

View File

@ -604,7 +604,7 @@ void QgsAttributeTableDialog::search()
else
str += " ~ '";
str += mQuery->displayText();
str += mQuery->displayText().replace("'", "''"); // escape quotes
str += "'";
doSearch( str );