Skip to content
Permalink
Browse files
Escape single quotes in quick search in attribute table
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@13180 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
wonder committed Mar 28, 2010
1 parent 492f018 commit 721b02774644e858d1d5e83cec56b8ff75c6dc82
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/app/attributetable/qgsattributetabledialog.cpp
@@ -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 721b027

Please sign in to comment.