projects
/
fa-stable.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Additional access control related ui helpers added: check_edit_access, access_post...
[fa-stable.git]
/
includes
/
ui
/
ui_msgs.inc
diff --git
a/includes/ui/ui_msgs.inc
b/includes/ui/ui_msgs.inc
index 8925c030ba4954248e3f88cb9f4876e936281d23..c29a1579ebb7fb3da1ee552284971c9fa2884d18 100644
(file)
--- a/
includes/ui/ui_msgs.inc
+++ b/
includes/ui/ui_msgs.inc
@@
-55,7
+55,7
@@
function stock_item_heading($stock_id)
{
if ($stock_id != "")
{
{
if ($stock_id != "")
{
- $result = db_query("SELECT description, units FROM ".TB_PREF."stock_master WHERE stock_id=
'$stock_id'");
+ $result = db_query("SELECT description, units FROM ".TB_PREF."stock_master WHERE stock_id=
".db_escape($stock_id));
$myrow = db_fetch_row($result);
display_heading("$stock_id - $myrow[0]");
$myrow = db_fetch_row($result);
display_heading("$stock_id - $myrow[0]");
@@
-64,4
+64,3
@@
function stock_item_heading($stock_id)
}
}
}
}
-?>
\ No newline at end of file