From 11f0f1a20492221395d6b4dde29f5d0419cae1ad Mon Sep 17 00:00:00 2001 From: tetragon Date: Thu, 6 Sep 2007 16:22:54 +0000 Subject: Fix memo searches git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/trunk@1521 4979c152-3d1c-0410-bac9-87ea11338e46 --- LedgerSMB/GL.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'LedgerSMB/GL.pm') diff --git a/LedgerSMB/GL.pm b/LedgerSMB/GL.pm index 0c747763..e069c930 100644 --- a/LedgerSMB/GL.pm +++ b/LedgerSMB/GL.pm @@ -257,7 +257,7 @@ sub all_transactions { } if ( $form->{memo} ne "" ) { - $var = $form->like( lc $form->{memo} ); + $var = $dbh->quote( $form->like( lc $form->{memo} ) ); $glwhere .= " AND lower(ac.memo) LIKE $var"; $arwhere .= " AND lower(ac.memo) LIKE $var"; $apwhere .= " AND lower(ac.memo) LIKE $var"; -- cgit v1.2.3