Skip to content
Permalink
Browse files
Escape single quotes in quick search in attribute table
git-svn-id: http://svn.osgeo.org/qgis/trunk@13180 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
wonder committed Mar 28, 2010
1 parent c39ef3d commit 188bbc7
Showing 1 changed file with 1 addition and 1 deletion.
@@ -604,7 +604,7 @@ void QgsAttributeTableDialog::search()
else
str += " ~ '";

str += mQuery->displayText();
str += mQuery->displayText().replace("'", "''"); // escape quotes
str += "'";

doSearch( str );

0 comments on commit 188bbc7

Please sign in to comment.