X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=purchasing%2Fpo_entry_items.php;h=2f903ba12be839caa38e95236ec79283cf17f080;hb=8ea6c4dd0d9b31b3456d012b0c94339b801bee0c;hp=a5f4b7d59e9f2e7919a03b134c18b71b0bbe067b;hpb=80dd97a37f674cc3691fa04af4c29607067566b2;p=fa-stable.git diff --git a/purchasing/po_entry_items.php b/purchasing/po_entry_items.php index a5f4b7d5..2f903ba1 100644 --- a/purchasing/po_entry_items.php +++ b/purchasing/po_entry_items.php @@ -228,7 +228,7 @@ function handle_add_new_item() if ($allow_update == true) { $sql = "SELECT description, units, mb_flag - FROM ".TB_PREF."stock_master WHERE stock_id = '". $_POST['stock_id'] . "'"; + FROM ".TB_PREF."stock_master WHERE stock_id = ".db_escape($_POST['stock_id']); $result = db_query($sql,"The stock details for " . $_POST['stock_id'] . " could not be retrieved");