From: Janusz Dobrowolski Date: Wed, 4 Nov 2009 14:28:39 +0000 (+0000) Subject: Fixed bug in printer selection introduced during security update and X-Git-Tag: v2.4.2~19^2~1052 X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=commitdiff_plain;h=a1967ccee4671bb1145805540c8d1256a3908052;p=fa-stable.git Fixed bug in printer selection introduced during security update and merged from main trunk. --- diff --git a/CHANGELOG.txt b/CHANGELOG.txt index 6d794a35..7f3d3d8a 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -19,6 +19,10 @@ Legend: ! -> Note $ -> Affected files +04-Nov-2009 Janusz Dobrowolski +# Fixed bug introduced during security update and merged from main trunk. +$ /admin/db/printers_db.inc + 03-Nov-2009 Janusz Dobrowolski ! Added optional parameter to add_bank_transaction $ /gl/includes/db/gl_db_banking.inc diff --git a/admin/db/printers_db.inc b/admin/db/printers_db.inc index 572dca5e..c1d80368 100644 --- a/admin/db/printers_db.inc +++ b/admin/db/printers_db.inc @@ -71,7 +71,7 @@ function update_printer_profile($name, $dest) function get_report_printer($profile, $report) { $sql = "SELECT printer FROM ".TB_PREF."print_profiles WHERE " - ."profile=".db_escape($profile)." AND report=".db_escape($report); + ."profile=".db_escape($profile)." AND report="; $result = db_query($sql.db_escape($report), 'report printer lookup failed');