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@13755 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
wonder committed Jun 20, 2010
1 parent e48766e commit fdecdf9
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 fdecdf9

Please sign in to comment.