mgt-generic: voorkom latere sql-injection op tabelnaam, ook al is het alleen FACFAC
svn path=/Website/branches/v2017.1/; revision=34389
This commit is contained in:
@@ -235,6 +235,8 @@ function model_generic(table, autfunction)
|
||||
oRs.MoveNext();
|
||||
}
|
||||
oRs.Close();
|
||||
if (!model.nrfields)
|
||||
abort_with_warning("No columns found for {0}".format(table)); // voorkomt ook latere sql-injection op tabelnaam
|
||||
|
||||
api2.generic_REST(model);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user