SQL injection in toevoegen Notes
svn path=/Website/trunk/; revision=35320
This commit is contained in:
@@ -197,7 +197,7 @@ function model_notes(module)
|
||||
//
|
||||
var dbfields = api2.update_fields(params, this, jsondata); // Build updater
|
||||
|
||||
var wheres = [ this.id.dbs + " = " + the_key];
|
||||
var wheres = [ this.fields.id.dbs + " = " + the_key];
|
||||
wheres.push("prs_perslid = " + user_key);
|
||||
|
||||
var xxxUpd = buildTrackingUpdate(this.table, wheres.join(" AND " ), dbfields, { noValidateToken: true });
|
||||
@@ -209,7 +209,7 @@ function model_notes(module)
|
||||
|
||||
this.REST_POST = function (params, jsondata) /* new note */
|
||||
{
|
||||
params.filter.parent_key = jsondata.parent;
|
||||
params.filter.parent_key = parseInt(jsondata.parent, 10);
|
||||
_check_authorization(params, "POST");
|
||||
//
|
||||
var dbfields = api2.update_fields(params, this, jsondata); // Build updater
|
||||
|
||||
Reference in New Issue
Block a user