summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--LedgerSMB/AA.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/LedgerSMB/AA.pm b/LedgerSMB/AA.pm
index 3eb59fe0..82ea62a1 100644
--- a/LedgerSMB/AA.pm
+++ b/LedgerSMB/AA.pm
@@ -952,8 +952,9 @@ sub transactions {
}
if ( $form->{till} ne "" ) {
+ $form->{till} = $dbh->quote($form->{till});
$where .= " AND a.invoice = '1'
- AND a.till = '$form->{till}'";
+ AND a.till = $form->{till}";
if ( $myconfig->{role} eq 'user' ) {
my $login = $dbh->quote( $form->{login} );