summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xLedgerSMB/AA.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/LedgerSMB/AA.pm b/LedgerSMB/AA.pm
index 26055d62..664f5abe 100755
--- a/LedgerSMB/AA.pm
+++ b/LedgerSMB/AA.pm
@@ -839,8 +839,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} );