Security fixes. Ensure that numeric values are actually numeric using is_numeric
so users can't login as admin by passing in non-numeric values.
This commit is contained in:
@@ -18,7 +18,7 @@ class Vendor {
|
||||
function Vendor($iVendorId = null)
|
||||
{
|
||||
// we are working on an existing vendor
|
||||
if($iVendorId)
|
||||
if(is_numeric($iVendorId))
|
||||
{
|
||||
/*
|
||||
* We fetch the data related to this vendor.
|
||||
|
||||
Reference in New Issue
Block a user