X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=reporting%2Frep501.php;h=45047adc021cbac1139fcbda68595977e5394307;hb=5040e3d0e0f8f5d6d08e0121f12308320abaa6c2;hp=b697925f1f87654b8c6d232db434d91a46085a97;hpb=d567a10b7925c8bb97c734e213d6651a979af29d;p=fa-stable.git diff --git a/reporting/rep501.php b/reporting/rep501.php index b697925f..45047adc 100644 --- a/reporting/rep501.php +++ b/reporting/rep501.php @@ -9,7 +9,7 @@ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the License here . ***********************************************************************/ -$page_security = 2; +$page_security = 'SA_DIMENSIONREP'; // ---------------------------------------------------------------- // $ Revision: 2.0 $ // Creator: Joe Hunt @@ -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";