X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=admin%2Fprint_profiles.php;h=2cdb011b2baf8ae1d6a88ae0416895da5d538ddb;hb=54d84ff9a67620ab38c676cdbcf87853632724f0;hp=8052a38af560843851dced86a3a232151e224376;hpb=cf67cec296e611c30be010686a5ea96d730418b0;p=fa-stable.git diff --git a/admin/print_profiles.php b/admin/print_profiles.php index 8052a38a..2cdb011b 100644 --- a/admin/print_profiles.php +++ b/admin/print_profiles.php @@ -77,7 +77,7 @@ function check_delete($name) { // check if selected profile is used by any user if ($name=='') return 0; // cannot delete system default profile - $sql = "SELECT * FROM ".TB_PREF."users WHERE print_profile='$name'"; + $sql = "SELECT * FROM ".TB_PREF."users WHERE print_profile=".db_escape($name); $res = db_query($sql,'cannot check printing profile usage'); return db_num_rows($res); }