Navigation Menu

Skip to content

Commit

Permalink
Fixed #2766.
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@13755 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
wonder committed Jun 20, 2010
1 parent f87e2a7 commit 9c196bb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/qgssearchquerybuilder.cpp
Expand Up @@ -151,8 +151,8 @@ void QgsSearchQueryBuilder::getFieldValues( int limit )

if ( !numeric )
{
// put string in single quotes
value = "'" + value + "'";
// put string in single quotes and escape single quotes in the string
value = "'" + value.replace( "'", "''" ) + "'";
}

// add item only if it's not there already
Expand Down

0 comments on commit 9c196bb

Please sign in to comment.