From 188bbc70a73ead0252dbd11160d000809a2310ec Mon Sep 17 00:00:00 2001 From: wonder Date: Sun, 28 Mar 2010 10:17:33 +0000 Subject: [PATCH] Escape single quotes in quick search in attribute table git-svn-id: http://svn.osgeo.org/qgis/trunk@13180 c8812cc2-4d05-0410-92ff-de0c093fc19c --- src/app/attributetable/qgsattributetabledialog.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/attributetable/qgsattributetabledialog.cpp b/src/app/attributetable/qgsattributetabledialog.cpp index e3efef3be6b..f0c64cfb98d 100644 --- a/src/app/attributetable/qgsattributetabledialog.cpp +++ b/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 );