summaryrefslogtreecommitdiff
path: root/LedgerSMB/GL.pm
diff options
context:
space:
mode:
Diffstat (limited to 'LedgerSMB/GL.pm')
-rw-r--r--LedgerSMB/GL.pm2
1 files changed, 1 insertions, 1 deletions
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";