X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=reporting%2Frep501.php;h=0435dafb1a3947a6624deba259db7fe55024dd8f;hb=e29ab37ef51f39c200c3772e07eeceef0ce39214;hp=b697925f1f87654b8c6d232db434d91a46085a97;hpb=7d9fe15f85c15572535c5fa4555b9a72e9d93f04;p=fa-stable.git diff --git a/reporting/rep501.php b/reporting/rep501.php index b697925f..0435dafb 100644 --- a/reporting/rep501.php +++ b/reporting/rep501.php @@ -32,8 +32,8 @@ function getTransactions($from, $to) $sql = "SELECT * FROM ".TB_PREF."dimensions - WHERE reference >= '$from' - AND reference <= '$to' + WHERE reference >= ".db_escape($from)." + AND reference <= ".db_escape($to)." ORDER BY reference";