X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=reporting%2Frep705.php;h=faf815f44c9c1aef9cab03e72606cc4911926447;hb=45a035785b9a820621da56dec93078b3ccd9832e;hp=4361b6e7cea3ee10d63448dbe11a05e58e5aa958;hpb=902f1015d874c33bd7946b17de2ad80b4f2144b6;p=fa-stable.git diff --git a/reporting/rep705.php b/reporting/rep705.php index 4361b6e7..faf815f4 100644 --- a/reporting/rep705.php +++ b/reporting/rep705.php @@ -62,9 +62,9 @@ function getPeriods($year, $account, $dimension, $dimension2) FROM ".TB_PREF."gl_trans WHERE account='$account'"; if ($dimension > 0) - $sql .= " AND dimension_id = $dimension"; + $sql .= " AND dimension_id = ".db_escape($dimension); if ($dimension2 > 0) - $sql .= " AND dimension2_id = $dimension2"; + $sql .= " AND dimension2_id = ".db_escape($dimension2); $result = db_query($sql, "Transactions for account $account could not be calculated");