Skip to content

Commit

Permalink
Escape single quotes in quick search in attribute table
Browse files Browse the repository at this point in the history
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 721b027
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/attributetable/qgsattributetabledialog.cpp
Expand Up @@ -604,7 +604,7 @@ void QgsAttributeTableDialog::search()
else
str += " ~ '";

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

doSearch( str );
Expand Down

0 comments on commit 721b027

Please sign in to comment.