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@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.
2 changes: 1 addition & 1 deletion src/app/attributetable/qgsattributetabledialog.cpp
Original file line number Diff line number Diff line change
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 188bbc7

Please sign in to comment.