[QGIS Commit] r13180 - trunk/qgis/src/app/attributetable

svn_qgis at osgeo.org svn_qgis at osgeo.org
Sun Mar 28 06:17:34 EDT 2010


Author: wonder
Date: 2010-03-28 06:17:33 -0400 (Sun, 28 Mar 2010)
New Revision: 13180

Modified:
   trunk/qgis/src/app/attributetable/qgsattributetabledialog.cpp
Log:
Escape single quotes in quick search in attribute table


Modified: trunk/qgis/src/app/attributetable/qgsattributetabledialog.cpp
===================================================================
--- trunk/qgis/src/app/attributetable/qgsattributetabledialog.cpp	2010-03-28 10:13:10 UTC (rev 13179)
+++ trunk/qgis/src/app/attributetable/qgsattributetabledialog.cpp	2010-03-28 10:17:33 UTC (rev 13180)
@@ -604,7 +604,7 @@
   else
     str += " ~ '";
 
-  str += mQuery->displayText();
+  str += mQuery->displayText().replace("'", "''"); // escape quotes
   str += "'";
 
   doSearch( str );



More information about the QGIS-commit mailing list