Skip to content

Commit 188bbc7

Browse files
author
wonder
committed
Escape single quotes in quick search in attribute table
git-svn-id: http://svn.osgeo.org/qgis/trunk@13180 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent c39ef3d commit 188bbc7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/app/attributetable/qgsattributetabledialog.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -604,7 +604,7 @@ void QgsAttributeTableDialog::search()
604604
else
605605
str += " ~ '";
606606

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

610610
doSearch( str );

0 commit comments

Comments
 (0)